-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (82 loc) · 2.42 KB
/
build.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
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Rust
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
test-shared:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- "1.66"
name: Test w. shared library (${{matrix.toolchain}} toolchain)
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: |
sudo add-apt-repository -u -y ppa:s-ramacher/picnic
sudo apt install libpicnic-dev pkg-config
- name: Test with default features
run: cargo test
- name: Test with all features
run: cargo test --all-features
- name: Test without std feature
run: cargo test --no-default-features --features system --features picnic --features picnic3
test-static:
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain:
- stable
- "1.66"
os:
- ubuntu-latest
- windows-latest
- macos-latest
name: Test w. static-fallback (${{matrix.toolchain}} toolchain, ${{ matrix.os }})
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.toolchain}}
- uses: Swatinem/rust-cache@v2
- name: Test with default features
run: cargo test
- name: Test with all features
run: cargo test --all-features
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo add-apt-repository -u -y ppa:s-ramacher/picnic
sudo apt install libpicnic-dev pkg-config
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo add-apt-repository -u -y ppa:s-ramacher/picnic
sudo apt install libpicnic-dev pkg-config
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all --all-features -- -D warnings