-
Notifications
You must be signed in to change notification settings - Fork 15
32 lines (31 loc) · 887 Bytes
/
ci.yaml
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
name: Continuos Integration
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
# Build the crate on Linux and MacOS (can only be tested on Linux). Windows is
# not tested, as this crate requires a POSIX-only-tool (`valgrind`), which is
# not available on Windows.
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- run: rustup update --no-self-update ${{ matrix.rust }} && rustup default ${{ matrix.rust }}
- name: Build
run: cargo build
# execute all tests (requires an installed valgrind)
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Install valgrind
run: sudo apt install valgrind
- name: Run tests
run: cargo test