diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 32b656e4..0babfc15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,6 @@ concurrency: cancel-in-progress: ${{ github.event_name == 'pull_request' }} env: - RUST_TOOLCHAIN_NIGHTLY: nightly-2024-07-19 CARGO_TERM_COLOR: always CACHE_KEY_SUFFIX: 20240821 @@ -122,7 +121,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - rust_toolchain: [stable, 1.81.0, ${{ env.RUST_TOOLCHAIN_NIGHTLY }}] + rust_toolchain: [stable, 1.81.0, nightly-2024-07-19] runs-on: ${{ matrix.os }} steps: - name: Checkout @@ -250,7 +249,7 @@ jobs: - name: Install rust toolchain uses: dtolnay/rust-toolchain@master with: - toolchain: ${{ env.RUST_TOOLCHAIN_NIGHTLY }} + toolchain: nightly-2024-07-19 - name: Cache Cargo home uses: actions/cache@v4 id: cache @@ -268,7 +267,7 @@ jobs: RUST_LOG: info CI: true run: |- - cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} test --lib --bins --tests --target x86_64-unknown-linux-gnu -- --nocapture + cargo +nightly-2024-07-19 test --lib --bins --tests --target x86_64-unknown-linux-gnu -- --nocapture - name: Run foyer-bench With Address Sanitizer env: RUST_BACKTRACE: 1 @@ -276,7 +275,7 @@ jobs: RUST_LOG: info CI: true run: |- - cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu + cargo +nightly-2024-07-19 build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-bench/asan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-bench/asan --mem 16MiB --disk 256MiB --region-size 16MiB --get-range 1000 --w-rate 1MiB --r-rate 1MiB --admission-rate-limit 10MiB --time 60 - name: Prepare Artifacts on Failure @@ -298,7 +297,7 @@ jobs: - name: Install rust toolchain uses: dtolnay/rust-toolchain@master with: - toolchain: ${{ env.RUST_TOOLCHAIN_NIGHTLY }} + toolchain: nightly-2024-07-19 - name: Cache Cargo home uses: actions/cache@v4 id: cache @@ -316,7 +315,7 @@ jobs: RUST_LOG: info CI: true run: |- - cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} test --lib --bins --tests --target x86_64-unknown-linux-gnu -- --nocapture + cargo +nightly-2024-07-19 test --lib --bins --tests --target x86_64-unknown-linux-gnu -- --nocapture - name: Run foyer-bench With Leak Sanitizer env: RUST_BACKTRACE: 1 @@ -324,7 +323,7 @@ jobs: RUST_LOG: info CI: true run: |- - cargo +${{ env.RUST_TOOLCHAIN_NIGHTLY }} build --all --target x86_64-unknown-linux-gnu + cargo +nightly-2024-07-19 build --all --target x86_64-unknown-linux-gnu mkdir -p $GITHUB_WORKSPACE/foyer-data/foyer-bench/lsan timeout 2m ./target/x86_64-unknown-linux-gnu/debug/foyer-bench --dir $GITHUB_WORKSPACE/foyer-data/foyer-bench/lsan --mem 16MiB --disk 256MiB --region-size 16MiB --get-range 1000 --w-rate 1MiB --r-rate 1MiB --admission-rate-limit 10MiB --time 60 - name: Prepare Artifacts on Failure