diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93963d2c..b87466e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,21 +1,18 @@ name: "Build" on: pull_request: - branches: - - master push: - branches: - - master jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v27 - with: - nix_path: nixpkgs=channel:nixpkgs-unstable - - run: GIT_LFS_SKIP_SMUDGE=1 nix build - - run: nix flake check + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main + - run: nix flake check --print-build-logs --keep-going check-features: runs-on: ubuntu-latest steps: @@ -25,4 +22,3 @@ jobs: - run: cargo check --no-default-features - run: cargo check --features debug - run: cargo check --features profile-with-tracy -