Skip to content

Commit

Permalink
ci: Add testing more archs
Browse files Browse the repository at this point in the history
  • Loading branch information
wcampbell0x2a committed Jun 21, 2023
1 parent 3cc9bf6 commit 1004987
Showing 1 changed file with 46 additions and 4 deletions.
50 changes: 46 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ on:
name: ci

jobs:
# build, test all supported targets
build-test:
# build all supported targets for library
build-lib:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- arm-unknown-linux-musleabi
- mips-unknown-linux-musl
- mipsel-unknown-linux-musl
toolchain:
- stable
# msrv
Expand All @@ -35,8 +41,44 @@ jobs:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- run: cargo build ${{ matrix.features }}
- run: RUST_LOG=info cargo test --release ${{ matrix.features }}
# install cross
- run: cargo install cargo-quickinstall
- run: cargo quickinstall [email protected] --force
# build with cross
- run: cross build ${{ matrix.features }} --target ${{ matrix.target }} --locked --lib

# test some supported targets
test:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- x86_64-unknown-linux-musl
toolchain:
- stable
# msrv
- 1.65.0
features:
- --no-default-features --features xz
- --no-default-features --features gzip
- --no-default-features --features gzip,xz
- --no-default-features --features xz-static
# default features
-

steps:
- run: sudo apt-get install -y squashfs-tools
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
# install cross
- run: cargo install cargo-quickinstall
- run: cargo quickinstall [email protected] --force
# test with cross
- run: RUST_LOG=info cross test --release ${{ matrix.features }} --target ${{ matrix.target }} --locked

# benchmark
benchmark:
Expand Down

0 comments on commit 1004987

Please sign in to comment.