forked from URI-ABD/clam
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (54 loc) · 1.35 KB
/
tests.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
54
55
56
57
58
name: Tests
on:
workflow_call:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- main
- master
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v3
- name: Fetch workspace members
run: git submodule update --init
- name: Setup | Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: |
clippy
rustfmt
- uses: actions/setup-python@v4
with:
python-version: '3.9'
- uses: pre-commit/[email protected]
rust:
name: Rust | Tests
needs: pre-commit
strategy:
fail-fast: false
matrix:
# TODO: Add macos-latest after figuring cc linker issue for symagen in github actions
os: ["ubuntu-latest", "windows-latest"] # , "macos-latest"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Fetch workspace members
run: git submodule update --init
- name: Setup | Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: |
clippy
rustfmt
- name: Clam | Tests
run: cargo test --release --package abd-clam