forked from MystenLabs/dapol
-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (40 loc) · 1.09 KB
/
ci.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Build platform and run tests
# Took inspiration from the following:
# https://infinyon.com/blog/2021/04/github-actions-best-practices/
# https://github.com/infinyon/fluvio/blob/master/.github/workflows/ci.yml
# https://github.com/clap-rs/clap/blob/master/.github/workflows/ci.yml
name: CI
on:
push:
branches: [main]
paths:
- "**"
- "!/*.md"
- "!/**.md"
pull_request:
branches: [main]
paths:
- "**"
- "!/*.md"
- "!/**.md"
jobs:
build:
name: Build on (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
env:
RUST_BACKTRACE: full
RELEASE: true
steps:
- uses: actions/checkout@v4
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo test --all-targets --no-run
- name: Test
run: cargo test
# TODO maybe we should have a light version of the benches that we can run for pushes to main (not PRs)
# - name: Test
# run: cargo test --workspace --benches