-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (31 loc) · 1.07 KB
/
2-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
name: Rust
on:
push:
branches: [ "main" , "develop" ]
pull_request:
branches: [ "main", "develop" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test-x64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run tests
run: cargo test --workspace --release --verbose
- name: Run no_std tests
run: cargo test --workspace --release --verbose --no-default-features --features random,serde
build-and-test-x32:
runs-on: ubuntu-latest
env:
DEP_GMP_LIMB_BITS: 32
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo dpkg --add-architecture i386 && sudo apt-get update && sudo apt-get install -y gcc-multilib g++-multilib
- name: Add 32 bit toolchain
run: rustup toolchain install stable-i686-unknown-linux-gnu && rustup default stable-i686-unknown-linux-gnu
- name: Run tests
run: cargo test --workspace --release --verbose
- name: Run no_std tests
run: cargo test --workspace --release --verbose --no-default-features --features random,serde