Skip to content

Commit

Permalink
Add CI for 32-bit and big-endian platforms (#198)
Browse files Browse the repository at this point in the history
* ci: Move non-Linux testing to its own stanza

* ci: Remove 1.37.0 from matrix of rust versions

Instead, explicitly add a config for 1.37.0 and no const-generics feature.  This paves the way for cross testing, which requires rust >= 1.58.

* ci: Add 32-bit (i686) and big-endian (sparc64) testing

* ci: Disable fail-fast so all results are available
  • Loading branch information
jamessan authored Sep 15, 2023
1 parent 64de5c6 commit 530ec75
Showing 1 changed file with 39 additions and 12 deletions.
51 changes: 39 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,55 @@ name: CI

jobs:
test-linux:
name: Test
runs-on: ${{ matrix.os }}
name: Test Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
rust:
- 1.37.0
- stable
- beta
- nightly
mb_const_generics:
- ""
- "--features const-generics"
exclude:
- mb_const_generics: "--features const-generics"
rust: 1.37.0
target:
- x86_64
- i686
- sparc64
include:
- os: macos-latest
rust: stable
- os: windows-latest
rust: stable
- mb_const_generics: ""
rust: 1.37.0
target: x86_64
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.target != 'x86_64' }}
command: test
args: --verbose --features "strict" ${{ matrix.mb_const_generics }} --target ${{ matrix.target }}-unknown-linux-gnu
- uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.target != 'x86_64' }}
command: doc
args: --features "strict" ${{ matrix.mb_const_generics }} --target ${{ matrix.target }}-unknown-linux-gnu

test-non-linux:
name: Test non-Linux
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- windows-latest
rust:
- stable
mb_const_generics:
- ""
- "--features const-generics"
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
Expand Down

0 comments on commit 530ec75

Please sign in to comment.