Skip to content

Use latest rust-staticlib-gen #20

Use latest rust-staticlib-gen

Use latest rust-staticlib-gen #20

Workflow file for this run

name: Rust tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
run:
name: Build
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
os: [macos-latest, ubuntu-latest]
ocaml-compiler:
[
"4.14.1",
]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: OCaml/Opam cache
id: ocaml-rs-opam-cache
uses: actions/cache@v4
with:
path: "~/.opam"
key: ocaml-rs-opam-${{ matrix.ocaml-compiler }}-${{ matrix.os }}
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: cargo fmt --all -- --check
- run: opam exec -- cargo clippy --all -- -D warnings
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest