Skip to content

Commit

Permalink
Merge pull request #8 from aftershootco/serde
Browse files Browse the repository at this point in the history
feat: derive serde `Serialize` and `Deserialize` for enums behind fea…
  • Loading branch information
uttarayan21 authored Nov 20, 2024
2 parents f1c994e + 35d0a70 commit 99cadc8
Show file tree
Hide file tree
Showing 8 changed files with 307 additions and 301 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- id: set-matrix
name: Generate Nix Matrix
run: |
Expand All @@ -32,8 +31,14 @@ jobs:
matrix: ${{fromJSON(needs.checks-matrix.outputs.matrix)}}
steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: 'recursive'
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: mnn-rs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build -L '.#${{ matrix.attr }}'

codecov:
Expand All @@ -44,11 +49,17 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
lfs: true
submodules: 'recursive'
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: mnn-rs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'

- name: Run codecov
run: nix build .#mnn-llvm-cov
run: nix build .#checks.x86_64-linux.mnn-llvm-cov

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: cachix/cachix-action@v14
with:
name: mnn-rs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- uses: DeterminateSystems/flake-checker-action@main

- name: Generate docs
Expand Down
Loading

0 comments on commit 99cadc8

Please sign in to comment.