Skip to content

Commit 90245e2

Browse files
author
Vasily Galkin
committed
Extend build matrix with arm and minor targets
1 parent e87c685 commit 90245e2

2 files changed

Lines changed: 61 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,31 @@ jobs:
2222
platform:
2323
- { target: x86_64-pc-windows-gnu, os: windows-latest }
2424
- { target: x86_64-pc-windows-msvc, os: windows-latest }
25+
- { target: aarch64-pc-windows-msvc, os: windows-11-arm }
2526
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest }
26-
- { target: x86_64-apple-darwin, os: macos-latest }
27+
- { target: x86_64-unknown-linux-musl, os: ubuntu-latest }
28+
- { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm }
29+
- { target: aarch64-unknown-linux-musl, os: ubuntu-24.04-arm }
30+
- { target: x86_64-apple-darwin, os: macos-15-intel }
31+
- { target: aarch64-apple-darwin, os: macos-latest }
2732

2833
runs-on: ${{ matrix.platform.os }}
2934

3035
steps:
3136
- uses: actions/checkout@v1
32-
- uses: hecrj/setup-rust-action@v1
33-
with:
34-
rust-version: stable-${{ matrix.platform.target }}
37+
38+
- name: Target add and log toolchain info
39+
run: |
40+
rustup target add ${{ matrix.platform.target }}
41+
rustup --version
42+
rustup toolchain list
43+
rustup target list --installed
3544
3645
- name: Build
37-
run: cargo build --verbose
46+
run: cargo build --verbose --target ${{ matrix.platform.target }}
3847

3948
- name: Test
40-
run: cargo test --verbose
49+
run: cargo test --verbose --target ${{ matrix.platform.target }}
4150

4251
env:
4352
RUST_BACKTRACE: 1
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
workflow_dispatch
3+
4+
jobs:
5+
TestExtraPlatforms:
6+
strategy:
7+
fail-fast: false
8+
9+
matrix:
10+
platform:
11+
- { target: x86_64-win7-windows-gnu, os: windows-latest }
12+
- { target: x86_64-win7-windows-msvc, os: windows-latest }
13+
- { target: arm64ec-pc-windows-msvc, os: windows-11-arm }
14+
- { target: armv5te-unknown-linux-gnueabi, os: ubuntu-24.04-arm }
15+
- { target: armv5te-unknown-linux-musleabi, os: ubuntu-24.04-arm }
16+
- { target: x86_64h-apple-darwin, os: macos-15-intel }
17+
18+
runs-on: ${{ matrix.platform.os }}
19+
20+
steps:
21+
- uses: actions/checkout@v1
22+
23+
- name: Target add and log toolchain info
24+
run: |
25+
rustup default nightly
26+
rustup component add rust-src
27+
rustup --version
28+
rustup toolchain list
29+
rustup target list --installed
30+
31+
- name: Install linux linkers
32+
if: ${{ runner.os == 'Linux' }}
33+
run: sudo apt-get install gcc-arm-linux-gnueabi
34+
35+
- name: Build
36+
run: cargo build -Z build-std --verbose --target ${{ matrix.platform.target }}
37+
38+
- name: Test
39+
run: cargo test -Z build-std --verbose --target ${{ matrix.platform.target }}
40+
41+
env:
42+
RUST_BACKTRACE: 1
43+
RUST_INCREMENTAL: 0
44+
RUSTFLAGS: "-C debuginfo=0"
45+
CARGO_TARGET_ARMV5TE_UNKNOWN_LINUX_GNUEABI_LINKER: arm-linux-gnueabi-gcc
46+
CARGO_TARGET_ARMV5TE_UNKNOWN_LINUX_MUSLEABI_LINKER: arm-linux-gnueabi-gcc

0 commit comments

Comments
 (0)