From 4d9c8bda5b80e496cb95125f4dcbef4dbf4c87e5 Mon Sep 17 00:00:00 2001 From: Yuxiang Cao Date: Fri, 8 Mar 2024 10:29:06 -0800 Subject: [PATCH] update CI for this special use case --- .github/workflows/test.yml | 28 ++++------------------------ ci.sh | 2 +- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a0e156847..87bb4c8a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,30 +33,10 @@ jobs: strategy: matrix: include: - - rust: stable - target: 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 + target: nightly-2021-09-08-x86_64-unknown-linux-gnu os: ubuntu-20.04 - - rust: stable - target: x86_64-apple-darwin - os: macos-latest + runs-on: ${{ matrix.os }} @@ -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: diff --git a/ci.sh b/ci.sh index f1f7d6439..257a1ada8 100755 --- a/ci.sh +++ b/ci.sh @@ -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