diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e46b8c4..2bb54ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flakehub-cache-action@main - name: Check rustfmt run: nix develop --command cargo fmt -- --check @@ -19,7 +19,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flakehub-cache-action@main - name: Build run: nix build -L @@ -38,7 +38,7 @@ jobs: with: fetch-depth: 0 - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flakehub-cache-action@main - name: Check nixpkgs-fmt formatting run: nix develop --command sh -c "git ls-files '*.nix' | xargs nixpkgs-fmt --check" @@ -57,6 +57,6 @@ jobs: with: fetch-depth: 0 - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main + - uses: DeterminateSystems/flakehub-cache-action@main - name: Verify synthesize integration test still passes run: nix develop -c ./synthesize/integration-test-cases/verify.sh diff --git a/.github/workflows/update-flake-lock.yaml b/.github/workflows/update-flake-lock.yaml new file mode 100644 index 0000000..13962bf --- /dev/null +++ b/.github/workflows/update-flake-lock.yaml @@ -0,0 +1,22 @@ +name: update-flake-lock + +on: + workflow_dispatch: # enable manual triggering + schedule: + - cron: '0 0 * * 0' # every Sunday at midnight + +jobs: + lockfile: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/flakehub-cache-action@main + - uses: DeterminateSystems/update-flake-lock@main + with: + pr-title: "Update flake.lock" + pr-labels: | + dependencies + automated + inputs: | + nixpkgs diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 19b5340..3dea50a 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -10,11 +10,13 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + - name: Check flake + uses: DeterminateSystems/flake-checker-action + with: + fail-mode: true - name: Install Nix uses: DeterminateSystems/nix-installer-action@main - - name: Enable magic Nix cache - uses: DeterminateSystems/magic-nix-cache-action@main - - name: Check flake - uses: DeterminateSystems/flake-checker-action@main + - name: Enable FlakeHub cache + uses: DeterminateSystems/flakehub-cache-action@main - name: Update flake.lock uses: DeterminateSystems/update-flake-lock@main diff --git a/flake.lock b/flake.lock index d68c7a2..cc53a23 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1702312524, - "narHash": "sha256-gkZJRDBUCpTPBvQk25G0B7vfbpEYM5s5OZqghkjZsnE=", + "lastModified": 1741513245, + "narHash": "sha256-7rTAMNTY1xoBwz0h7ZMtEcd8LELk9R5TzBPoHuhNSCk=", "owner": "nixos", "repo": "nixpkgs", - "rev": "a9bf124c46ef298113270b1f84a164865987a91c", + "rev": "e3e32b642a31e6714ec1b712de8c91a3352ce7e1", "type": "github" }, "original": {