Skip to content

Commit 16a883f

Browse files
committed
hs1-siv: add .github workflow
1 parent 0981753 commit 16a883f

3 files changed

Lines changed: 70 additions & 2 deletions

File tree

.github/workflows/benches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
rust:
26-
- 1.81.0 # MSRV
26+
- 1.84.0 # MSRV
2727
- stable
2828
steps:
2929
- uses: actions/checkout@v4

.github/workflows/hs1-siv.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: hs1-siv
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/hs1-siv.yml"
7+
- "hs1-siv/**"
8+
- "Cargo.*"
9+
push:
10+
branches: master
11+
12+
defaults:
13+
run:
14+
working-directory: hs1-siv
15+
16+
env:
17+
CARGO_INCREMENTAL: 0
18+
RUSTFLAGS: "-Dwarnings"
19+
20+
jobs:
21+
build:
22+
runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
rust:
26+
- 1.84.0 # MSRV
27+
- stable
28+
target:
29+
- armv7a-none-eabi
30+
- thumbv7em-none-eabi
31+
- wasm32-unknown-unknown
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: dtolnay/rust-toolchain@master
35+
with:
36+
toolchain: ${{ matrix.rust }}
37+
targets: ${{ matrix.target }}
38+
- run: cargo build --no-default-features --release --target ${{ matrix.target }}
39+
40+
test:
41+
runs-on: ubuntu-latest
42+
strategy:
43+
matrix:
44+
include:
45+
# 32-bit Linux
46+
- target: i686-unknown-linux-gnu
47+
rust: 1.84.0 # MSRV
48+
deps: sudo apt update && sudo apt install gcc-multilib
49+
- target: i686-unknown-linux-gnu
50+
rust: stable
51+
deps: sudo apt update && sudo apt install gcc-multilib
52+
53+
# 64-bit Linux
54+
- target: x86_64-unknown-linux-gnu
55+
rust: 1.84.0 # MSRV
56+
- target: x86_64-unknown-linux-gnu
57+
rust: stable
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: dtolnay/rust-toolchain@master
61+
with:
62+
toolchain: ${{ matrix.rust }}
63+
targets: ${{ matrix.target }}
64+
- run: ${{ matrix.deps }}
65+
- run: cargo test --target ${{ matrix.target }} --release --no-default-features
66+
- run: cargo test --target ${{ matrix.target }} --release
67+
- run: cargo test --target ${{ matrix.target }} --release --all-features
68+
- run: cargo build --target ${{ matrix.target }} --benches

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
- uses: actions/checkout@v4
2929
- uses: dtolnay/rust-toolchain@master
3030
with:
31-
toolchain: 1.81.0
31+
toolchain: 1.84.0
3232
components: clippy
3333
- run: cargo clippy --all --all-features -- -D warnings

0 commit comments

Comments
 (0)