Skip to content

Commit

Permalink
Fix github actions & use latest rust-staticlib-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lupus committed Nov 5, 2024
1 parent cf68383 commit e798644
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,9 @@ jobs:
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}

- name: Set Opam env
run: opam env | tr '\n' ' ' >> $GITHUB_ENV
- run: cargo fmt --all -- --check
- run: opam exec -- cargo clippy --all -- -D warnings

- name: Add Opam switch to PATH
run: opam var bin >> $GITHUB_PATH

- name: Cargo fmt
run: cargo fmt --all -- --check

- name: Cargo clippy
run: cargo clippy --all -- -D warnings

- name: Cargo build
run: cargo build --verbose

- name: Dune runtest
run: dune runtest --verbose
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest
7 changes: 5 additions & 2 deletions dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
;(data_only_dirs target)

(dirs :standard \ target)

(rule
(alias runtest)
(action
(run dune-cargo-build @test --profile=%{profile} -- --workspace)))

0 comments on commit e798644

Please sign in to comment.