Skip to content

Commit

Permalink
feat: rust build
Browse files Browse the repository at this point in the history
  • Loading branch information
cdaringe committed Mar 24, 2023
1 parent 7b05963 commit 2cb7f21
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,19 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest] #, macos-latest, windows-latest]
ocaml-version:
- 4.12+0+domains
steps:
- name: Install native deps
run: sudo apt-get install -y libev-dev
- name: Checkout code
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v2
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: bash opam.dev.deps.sh
- run: opam exec -- dune build
- run: opam exec -- dune runtest
toolchain: nightly
override: true
components: rustfmt, clippy

# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory

- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check

0 comments on commit 2cb7f21

Please sign in to comment.