-
Notifications
You must be signed in to change notification settings - Fork 53
41 lines (36 loc) · 958 Bytes
/
ci.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
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo test
- run: cargo test --benches
## TODO fix?
# test_32bit:
# runs-on: ubuntu-latest
# steps:
# - run: rustup update stable
# - run: sudo apt update && sudo apt install -yq gcc-multilib musl-tools
# - run: rustup target add i686-unknown-linux-musl
# - uses: actions/checkout@v4
# - run: cargo test --target i686-unknown-linux-musl
check_wasm:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- run: rustup target add wasm32-unknown-unknown
- uses: actions/checkout@v4
- run: cargo check --target wasm32-unknown-unknown
rustfmt:
runs-on: ubuntu-latest
steps:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo fmt -- --check