diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index f8c7cca..0045175 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -9,17 +9,22 @@ on: jobs: check: - runs-on: ubuntu-latest + runs-on: + - nscloud-ubuntu-22.04-amd64-2x4-with-cache + - nscloud-cache-size-20gb + - nscloud-git-mirror-5gb steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Nix - uses: cachix/install-nix-action@v26 - with: - install_url: https://nixos.org/nix/install - extra_nix_config: | - auto-optimise-store = true - experimental-features = nix-command flakes - - name: Check Nix flake - run: nix flake check + - name: Checkout + uses: namespacelabs/nscloud-checkout-action@v2 + + - name: Install Nix + uses: cachix/install-nix-action@v26 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + extra_nix_config: | + auto-optimise-store = true + experimental-features = nix-command flakes + + - name: Check Nix flake + run: nix flake check