1cbd624adSopenharmony_ciname: Cross
2cbd624adSopenharmony_ci
3cbd624adSopenharmony_cion:
4cbd624adSopenharmony_ci  pull_request:
5cbd624adSopenharmony_ci    branches: [main]
6cbd624adSopenharmony_ci  workflow_dispatch:
7cbd624adSopenharmony_ci
8cbd624adSopenharmony_cijobs:
9cbd624adSopenharmony_ci  cross:
10cbd624adSopenharmony_ci    name: Rust ${{matrix.target}}
11cbd624adSopenharmony_ci    runs-on: ubuntu-latest
12cbd624adSopenharmony_ci    strategy:
13cbd624adSopenharmony_ci      fail-fast: false
14cbd624adSopenharmony_ci      matrix:
15cbd624adSopenharmony_ci        target:
16cbd624adSopenharmony_ci          # Android
17cbd624adSopenharmony_ci          - aarch64-linux-android
18cbd624adSopenharmony_ci          - arm-linux-androideabi
19cbd624adSopenharmony_ci          - armv7-linux-androideabi
20cbd624adSopenharmony_ci          - i686-linux-android
21cbd624adSopenharmony_ci          - x86_64-linux-android
22cbd624adSopenharmony_ci
23cbd624adSopenharmony_ci          # Linux
24cbd624adSopenharmony_ci          - aarch64-unknown-linux-gnu
25cbd624adSopenharmony_ci          - arm-unknown-linux-gnueabi
26cbd624adSopenharmony_ci          - armv7-unknown-linux-gnueabihf
27cbd624adSopenharmony_ci          - i686-unknown-linux-gnu
28cbd624adSopenharmony_ci          - i686-unknown-linux-musl
29cbd624adSopenharmony_ci          - mips-unknown-linux-gnu
30cbd624adSopenharmony_ci          - mips64-unknown-linux-gnuabi64
31cbd624adSopenharmony_ci          - mips64el-unknown-linux-gnuabi64
32cbd624adSopenharmony_ci          - mipsel-unknown-linux-gnu
33cbd624adSopenharmony_ci          - powerpc64le-unknown-linux-gnu
34cbd624adSopenharmony_ci          - x86_64-unknown-linux-gnu
35cbd624adSopenharmony_ci          - x86_64-unknown-linux-musl
36cbd624adSopenharmony_ci
37cbd624adSopenharmony_ci          # Windows
38cbd624adSopenharmony_ci          - x86_64-pc-windows-gnu
39cbd624adSopenharmony_ci
40cbd624adSopenharmony_ci    steps:
41cbd624adSopenharmony_ci      - uses: actions/checkout@v2
42cbd624adSopenharmony_ci      - uses: actions-rs/toolchain@v1
43cbd624adSopenharmony_ci        with:
44cbd624adSopenharmony_ci          toolchain: stable
45cbd624adSopenharmony_ci          target: ${{matrix.target}}
46cbd624adSopenharmony_ci          override: true
47cbd624adSopenharmony_ci      - uses: actions-rs/cargo@v1
48cbd624adSopenharmony_ci        with:
49cbd624adSopenharmony_ci          use-cross: true
50cbd624adSopenharmony_ci          command: check
51cbd624adSopenharmony_ci          args: --target ${{matrix.target}}
52cbd624adSopenharmony_ci      - uses: actions-rs/cargo@v1
53cbd624adSopenharmony_ci        with:
54cbd624adSopenharmony_ci          use-cross: true
55cbd624adSopenharmony_ci          command: test
56cbd624adSopenharmony_ci          args: --target ${{matrix.target}}
57cbd624adSopenharmony_ci      - uses: actions-rs/cargo@v1
58cbd624adSopenharmony_ci        with:
59cbd624adSopenharmony_ci          use-cross: true
60cbd624adSopenharmony_ci          command: test
61cbd624adSopenharmony_ci          args: --target ${{matrix.target}} --features=compact
62cbd624adSopenharmony_ci
63cbd624adSopenharmony_ci  notest:
64cbd624adSopenharmony_ci    name: Rust ${{matrix.target}}
65cbd624adSopenharmony_ci    runs-on: ubuntu-latest
66cbd624adSopenharmony_ci    strategy:
67cbd624adSopenharmony_ci      fail-fast: false
68cbd624adSopenharmony_ci      matrix:
69cbd624adSopenharmony_ci        target:
70cbd624adSopenharmony_ci          # Linux
71cbd624adSopenharmony_ci          - powerpc64-unknown-linux-gnu
72cbd624adSopenharmony_ci          - s390x-unknown-linux-gnu
73cbd624adSopenharmony_ci
74cbd624adSopenharmony_ci          # FreeBSD
75cbd624adSopenharmony_ci          - i686-unknown-freebsd
76cbd624adSopenharmony_ci          - x86_64-unknown-freebsd
77cbd624adSopenharmony_ci          - x86_64-unknown-netbsd
78cbd624adSopenharmony_ci
79cbd624adSopenharmony_ci    steps:
80cbd624adSopenharmony_ci      - uses: actions/checkout@v2
81cbd624adSopenharmony_ci      - uses: actions-rs/toolchain@v1
82cbd624adSopenharmony_ci        with:
83cbd624adSopenharmony_ci          toolchain: stable
84cbd624adSopenharmony_ci          target: ${{matrix.target}}
85cbd624adSopenharmony_ci          override: true
86cbd624adSopenharmony_ci      - uses: actions-rs/cargo@v1
87cbd624adSopenharmony_ci        with:
88cbd624adSopenharmony_ci          use-cross: true
89cbd624adSopenharmony_ci          command: check
90cbd624adSopenharmony_ci          args: --target ${{matrix.target}}
91