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 e54f7bd
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 38 deletions.
54 changes: 17 additions & 37 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
- rust: nightly-2021-09-08
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
os: ubuntu-20.04
- rust: stable
target: x86_64-apple-darwin
os: macos-latest


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

Expand Down Expand Up @@ -118,21 +98,21 @@ jobs:
cargo fmt --check -p mbedtls-platform-support
cargo fmt --check -p mbedtls-sys-auto
bench:
name: Cargo bench
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: boa-dev/criterion-compare-action@v3
name: Run criterion-compare-action
with:
cwd: "mbedtls"
benchName: "cipher"
branchName: ${{ github.base_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
# bench:
# name: Cargo bench
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@master
# with:
# toolchain: stable
# - uses: boa-dev/criterion-compare-action@v3
# name: Run criterion-compare-action
# with:
# cwd: "mbedtls"
# benchName: "cipher"
# branchName: ${{ github.base_ref }}
# token: ${{ secrets.GITHUB_TOKEN }}

ci-success:
name: ci
Expand Down
2 changes: 1 addition & 1 deletion ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_RUNNER=qemu-aarch64

cd "${repo_root}/mbedtls"
case "$TRAVIS_RUST_VERSION" in
stable|beta|nightly)
stable|beta|nightly|nightly-2021-09-08)
# Install the rust toolchain
rustup default $TRAVIS_RUST_VERSION
rustup target add --toolchain $TRAVIS_RUST_VERSION $TARGET
Expand Down

0 comments on commit e54f7bd

Please sign in to comment.