Skip to content

Commit 8c656f3

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 2433414 commit 8c656f3

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

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

0 commit comments

Comments
 (0)