Skip to content

Commit

Permalink
update CI for this special use case
Browse files Browse the repository at this point in the history
  • Loading branch information
Taowyoo committed Mar 8, 2024
1 parent ecf7193 commit 7bdaf04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 26 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,10 @@ jobs:
strategy:
matrix:
include:
- rust: stable
target: x86_64-unknown-linux-gnu
- rust: nightly-2021-09-08
target: nightly-2021-09-08-x86_64-unknown-linux-gnu
os: ubuntu-20.04
- rust: stable
target: x86_64-fortanix-unknown-sgx
os: ubuntu-20.04
- rust: stable
target: x86_64-pc-windows-msvc
os: windows-latest
- rust: stable
target: x86_64-pc-windows-msvc
os: windows-2019
- rust: stable
target: aarch64-unknown-linux-musl
os: ubuntu-20.04
- rust: beta
target: x86_64-unknown-linux-gnu
os: ubuntu-20.04
- rust: nightly
target: x86_64-unknown-linux-gnu
os: ubuntu-20.04
- rust: stable
target: x86_64-apple-darwin
os: macos-latest


runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -99,8 +79,8 @@ jobs:
TRAVIS_RUST_VERSION: ${{ matrix.rust }}
TARGET: ${{ matrix.target }}
MATRIX_OS: ${{ matrix.os }}
ZLIB_INSTALLED: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
AES_NI_SUPPORT: ${{ matrix.target == 'x86_64-unknown-linux-gnu' && 'true' || '' }}
ZLIB_INSTALLED: ${{ matrix.target == 'nightly-2021-09-08-x86_64-unknown-linux-gnu' && 'true' || '' }}
AES_NI_SUPPORT: ${{ matrix.target == 'nightly-2021-09-08-x86_64-unknown-linux-gnu' && 'true' || '' }}
shell: bash

fmt:
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ case "$TRAVIS_RUST_VERSION" in
fi

# no_std tests only are able to run on x86 platform
if [ "$TARGET" == "x86_64-unknown-linux-gnu" ] || [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
if [ "$TARGET" == "nightly-2021-09-08-x86_64-unknown-linux-gnu" ] || [[ "$TARGET" =~ ^x86_64-pc-windows- ]]; then
cargo nextest run --no-default-features --features "$FEAT"no_std_deps,rdrand,time --target $TARGET
cargo nextest run --no-default-features --features "$FEAT"no_std_deps --target $TARGET
fi
Expand Down

0 comments on commit 7bdaf04

Please sign in to comment.