-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 909 Bytes
/
rust.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
name: Rust
on:
push:
branches:
- main
paths:
- 'src/**'
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
x86:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Rust Version
run: rustc -V
- name: Format
run: cargo fmt -- --check
- name: Cargo check
run: cargo check --verbose
- name: Clippy
run: cargo clippy --verbose -- -Dwarnings
- name: Std
run: cargo test --verbose --all-features --workspace
- name: Prepare
# gcc-multilib is needed for i686
run: sudo apt-get update && sudo apt-get install -y gcc-multilib
- name: Install i686 target
run: rustup target add i686-unknown-linux-gnu
- name: i686 (32 bits)
run: cargo test --target=i686-unknown-linux-gnu --verbose --all-features --workspace