Skip to content

Commit f1bdee2

Browse files
committed
add cross testing on rust tier 1 and tier 2 with host tools
1 parent 24a9c9c commit f1bdee2

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/cross.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on: [push, pull_request]
2+
3+
name: Cross testing
4+
5+
jobs:
6+
7+
Cross:
8+
name: Cross
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
arch:
14+
############ Tier 1
15+
- aarch64-unknown-linux-gnu
16+
# - i686-pc-windows-gnu # not supported by cross
17+
# - i686-pc-windows-msvc # not supported by cross
18+
- i686-unknown-linux-gnu
19+
# - x86_64-apple-darwin # proprietary apple stuff
20+
- x86_64-pc-windows-gnu
21+
# - x86_64-pc-windows-msvc # not supported by cross
22+
- x86_64-unknown-linux-gnu
23+
############ Tier 2 with Host Tools
24+
# - aarch64-apple-darwin # proprietary apple stuff
25+
# - aarch64-pc-windows-msvc # not supported by cross
26+
- aarch64-unknown-linux-musl
27+
- arm-unknown-linux-gnueabi
28+
- arm-unknown-linux-gnueabihf
29+
- armv7-unknown-linux-gnueabihf
30+
- mips-unknown-linux-gnu
31+
- mips64-unknown-linux-gnuabi64
32+
- mips64el-unknown-linux-gnuabi64
33+
- mipsel-unknown-linux-gnu
34+
- powerpc-unknown-linux-gnu
35+
# - powerpc64-unknown-linux-gnu # not supported by cross
36+
- powerpc64le-unknown-linux-gnu
37+
- riscv64gc-unknown-linux-gnu
38+
- s390x-unknown-linux-gnu
39+
# - x86_64-unknown-freebsd # not supported by cross
40+
- x86_64-unknown-illumos
41+
- x86_64-unknown-linux-musl
42+
- x86_64-unknown-netbsd
43+
steps:
44+
- name: Checkout Crate
45+
uses: actions/checkout@v2
46+
- name: Checkout Toolchain
47+
uses: actions-rs/toolchain@v1
48+
with:
49+
profile: minimal
50+
toolchain: stable
51+
override: true
52+
- name: Install target
53+
run: rustup target add ${{ matrix.arch }}
54+
- name: install cross
55+
run: cargo install cross
56+
- name: run cross test
57+
run: cross test --target ${{ matrix.arch }}

0 commit comments

Comments
 (0)