Skip to content

Commit 2635a0f

Browse files
committed
Improve CI pipeline
Improve the CI pipeline by doing: - Run docs build with stable/nightly as required - Run 32 bit tests (default features with a 32 bit target) - Run cross tests (default features with a s390x target)
1 parent 8bf706c commit 2635a0f

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/rust.yml

+35
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- name: Running test script
1818
env:
1919
DO_LINT: true
20+
DO_DOCS: true
2021
DO_FEATURE_MATRIX: true
2122
run: ./contrib/test.sh
2223

@@ -45,6 +46,7 @@ jobs:
4546
uses: dtolnay/rust-toolchain@nightly
4647
- name: Running test script
4748
env:
49+
DO_DOCSRS: true
4850
DO_FMT: true
4951
run: ./contrib/test.sh
5052

@@ -102,3 +104,36 @@ jobs:
102104
RUSTFLAGS: "-C link-arg=-Tlink.x"
103105
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
104106
run: cd embedded/no-allocator && cargo run --target thumbv7m-none-eabi
107+
108+
Arch32bit:
109+
name: Test 32-bit version
110+
runs-on: ubuntu-latest
111+
steps:
112+
- name: Checkout Crate
113+
uses: actions/checkout@v3
114+
- name: Checkout Toolchain
115+
uses: dtolnay/rust-toolchain@stable
116+
- name: Add architecture i386
117+
run: sudo dpkg --add-architecture i386
118+
- name: Install i686 gcc
119+
run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib
120+
- name: Install target
121+
run: rustup target add i686-unknown-linux-gnu
122+
- name: Run tests on i686
123+
run: cargo test --target i686-unknown-linux-gnu
124+
125+
Cross:
126+
name: Cross test
127+
if: ${{ !github.event.act }}
128+
runs-on: ubuntu-latest
129+
steps:
130+
- name: Checkout Crate
131+
uses: actions/checkout@v3
132+
- name: Checkout Toolchain
133+
uses: dtolnay/rust-toolchain@stable
134+
- name: Install target
135+
run: rustup target add s390x-unknown-linux-gnu
136+
- name: install cross
137+
run: cargo install cross --locked
138+
- name: run cross test
139+
run: cross test --target s390x-unknown-linux-gnu

0 commit comments

Comments
 (0)