feat: Update flake.nix to not account for all files #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
branches: [ master ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: "write" | |
contents: "read" | |
steps: | |
- 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: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
flags: unittests | |
name: codecov-mnn | |
fail_ci_if_error: true | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./result | |
verbose: true |