-
Notifications
You must be signed in to change notification settings - Fork 6
31 lines (24 loc) · 750 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Rust
on:
push:
branches: [ "main" ]
paths: ['src/**', 'tests/**', 'third-party/**', 'Cargo.toml', 'build.rs', 'init.sh', '.github/workflows/rust.yml']
pull_request:
branches: [ "main" ]
paths: ['src/**', 'tests/**', 'third-party/**', 'Cargo.toml', 'build.rs', 'init.sh']
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Step to install OCaml compiler and dependencies
- name: Install OCaml
run: |
sudo apt-get update
sudo apt-get install -y ocaml opam
opam init --disable-sandboxing -y
eval $(opam env)
- name: Build & Run tests
run: ./init.sh && cargo run --release --bin hakana test tests