Skip to content

Commit

Permalink
Cross for some of the Tier 1 targets
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Sep 24, 2023
1 parent 1d75add commit 87a08b2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,18 @@ jobs:
include:
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
use_cross: true
- os: ubuntu-latest
target: i686-unknown-linux-gnu
use_cross: true
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: i686-pc-windows-gnu
use_cross: true
- os: windows-latest
target: i686-pc-windows-msvc
use_cross: true
- os: windows-latest
target: x86_64-pc-windows-gnu
- os: windows-latest
Expand All @@ -61,17 +65,22 @@ jobs:
toolchain: 1.66.0
targets: ${{ matrix.target }}
- uses: taiki-e/install-action@v2
if: matrix.cargo-binary == "cross"
with:
tool: cross

- name: Check without features
run: cargo check --target=${{ matrix.target }}

- name: Check with all features enabled
run: cross check --all-features --target=${{ matrix.target }}
run: ${{ env.CARGO_BINARY }} check --all-features --target=${{ matrix.target }}
env:
CARGO_BINARY: ${{ matrix.use_cross && 'cross' || 'cargo' }}

- name: Run tests
run: cross test --all-features --target=${{ matrix.target }}
run: ${{ env.CARGO_BINARY }} test --all-features --target=${{ matrix.target }}
env:
CARGO_BINARY: ${{ matrix.use_cross && 'cross' || 'cargo' }}

tier2_with_host_tools:
# Matches Rust "Tier 2 with Host Tools" platform support
Expand Down

0 comments on commit 87a08b2

Please sign in to comment.