Skip to content

Commit

Permalink
Add cargo build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed May 11, 2024
1 parent c2415d9 commit cec3253
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/nix-build.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Build"
on: { push: { branches: [ "main" ] } }
jobs:
build:
nix-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -14,3 +14,20 @@ jobs:
nix -L build github:srid/devour-flake \
--no-link --print-out-paths \
--override-input flake .
cargo-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
- run: |
nix develop --command \
cargo fmt --check
- run: |
nix develop --command \
cargo clippy
- run: |
nix develop --command \
cargo build --all-targets
- run: |
nix develop --command \
cargo test

0 comments on commit cec3253

Please sign in to comment.