Skip to content

Commit

Permalink
feat: use magic-nix-cache-action
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed Sep 5, 2024
1 parent db9a01f commit 7d4f8c6
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ jobs:
build:

runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/flake-checker-action@main

- name: Run `nix flake check`
run: nix flake check

- name: Run codecov
run: nix --extra-experimental-features "nix-command flakes" build .#mnn-llvm-cov

- name: Install nix
uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix flake check
- run: nix --extra-experimental-features "nix-command flakes" build .#mnn-llvm-cov
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
Expand Down

0 comments on commit 7d4f8c6

Please sign in to comment.