From 02c7d0704284a23a7ce2e5c71e62594a91634854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kopa=C5=84ski?= Date: Fri, 12 Apr 2024 21:59:46 +0200 Subject: [PATCH 1/2] Bump actions and use cachix --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5563ee6..5424543 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,5 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v24 - - run: nix build -L --show-trace + - uses: cachix/install-nix-action@v26 + - uses: cachix/cachix-action@v14 + with: + name: perspicuous + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + - run: | + nix build -L --show-trace From 164584be6d4fd93813e4fda22c39c49334799da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kopa=C5=84ski?= Date: Fri, 12 Apr 2024 22:00:13 +0200 Subject: [PATCH 2/2] Push our dev environment to cache --- .github/workflows/cache-nix-dev.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/cache-nix-dev.yml diff --git a/.github/workflows/cache-nix-dev.yml b/.github/workflows/cache-nix-dev.yml new file mode 100644 index 0000000..c0fc5a6 --- /dev/null +++ b/.github/workflows/cache-nix-dev.yml @@ -0,0 +1,19 @@ +name: "Cache nix dev environment" + +on: + push: + branches: + - main + +jobs: + devenv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v26 + - uses: cachix/cachix-action@v14 + with: + name: perspicuous + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + - run: | + nix develop --print-build-logs --command true