Use cargo crane in Nix flake and set up cachix action (#539)

This commit is contained in:
Benjamin Grosse
2025-10-25 23:44:19 +01:00
committed by GitHub
parent 0ddded3b8b
commit 1ec311590d
4 changed files with 154 additions and 61 deletions

View File

@@ -45,3 +45,25 @@ jobs:
reporter: 'github-check'
- name: Run tests
run: cargo test --locked
nix-flake-test:
name: Flake checks ❄️
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v15
with:
name: iamb-prs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Flake check
run: |
nix flake show
nix flake check --print-build-logs