From 0633f991adbaccdb692fdb51dc714fa8a4d1b562 Mon Sep 17 00:00:00 2001 From: Nyk Ma Date: Fri, 22 Mar 2024 00:47:52 +0800 Subject: [PATCH] [#][CI] nix build w/ cache --- .github/workflows/build_nix.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml index 2f684e11..c7ebe33b 100644 --- a/.github/workflows/build_nix.yml +++ b/.github/workflows/build_nix.yml @@ -8,6 +8,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: cachix/install-nix-action@v12 + - uses: cachix/install-nix-action@v26 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v14 + with: + name: nextid-relation-service + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - name: Building package - run: nix-build . -A defaultPackage.x86_64-linux + run: nix build