-
Notifications
You must be signed in to change notification settings - Fork 270
56 lines (53 loc) · 1.96 KB
/
cross.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
on: [push, pull_request]
name: Cross testing
jobs:
Cross:
name: Cross
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
############ Tier 1
- aarch64-unknown-linux-gnu
# - i686-pc-windows-gnu # not supported by cross
# - i686-pc-windows-msvc # not supported by cross
- i686-unknown-linux-gnu
# - x86_64-apple-darwin # proprietary apple stuff
- x86_64-pc-windows-gnu
# - x86_64-pc-windows-msvc # not supported by cross
- x86_64-unknown-linux-gnu
############ Tier 2 with Host Tools
# - aarch64-apple-darwin # proprietary apple stuff
# - aarch64-pc-windows-msvc # not supported by cross
- aarch64-unknown-linux-musl
- arm-unknown-linux-gnueabi
- arm-unknown-linux-gnueabihf
- armv7-unknown-linux-gnueabihf
- powerpc-unknown-linux-gnu
# - powerpc64-unknown-linux-gnu # not supported by cross
- powerpc64le-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
- s390x-unknown-linux-gnu
# - x86_64-unknown-freebsd # not supported by cross
# - x86_64-unknown-illumos # not supported by cross
- x86_64-unknown-linux-musl
# - x86_64-unknown-netbsd # error in tests "error: test failed, to rerun pass '--lib'", disabled for now
steps:
- name: Checkout Crate
uses: actions/checkout@v2
- uses: Swatinem/[email protected]
with:
key: ${{ matrix.feature }}${{ matrix.os }}
- name: Checkout Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install target
run: rustup target add ${{ matrix.arch }}
- name: install cross
run: cargo install cross
- name: run cross test
run: cross test --target ${{ matrix.arch }} --verbose