-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: check | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths: | ||
- "src/" | ||
- "flake.lock" | ||
- "flake.nix" | ||
- ".sops.yml" | ||
- ".github/workflows/build.yml" | ||
pull_request: | ||
paths: | ||
- "src/" | ||
- "flake.lock" | ||
- "flake.nix" | ||
- ".sops.yml" | ||
- ".github/workflows/build.yml" | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
matrix: | ||
# macos-14 is aarch64-darwin (silicone) | ||
os: [ubuntu-latest, macos-14] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# install nix | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
# cache packages | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
# info on flake dependencies | ||
- uses: DeterminateSystems/flake-checker-action@main | ||
env: | ||
FLAKE_CHECKER_NO_TELEMETRY: true | ||
# validate all outputs | ||
- name: Validate flake outputs | ||
run: nix flake check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: update | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * 0" # Sunday at midnight | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# install nix | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
# cache packages | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
# info on flake dependencies beforehand | ||
- uses: DeterminateSystems/flake-checker-action@main | ||
env: | ||
FLAKE_CHECKER_NO_TELEMETRY: true | ||
# TODO: run `nix flake check` on all platforms and if it works after update, submit PR | ||
# update flake and send PR | ||
- uses: DeterminateSystems/update-flake-lock@main | ||
with: | ||
pr-title: "Update flake.lock" | ||
pr-labels: bot | ||
# https://github.com/DeterminateSystems/update-flake-lock?tab=readme-ov-file#with-a-personal-authentication-token | ||
token: ${{ secrets.GH_TOKEN_FOR_UPDATES }} |