From 32cc1de839db5f33ae1db3d4196e9dd2504a216a Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 18 Jun 2022 11:04:31 +0900 Subject: [PATCH 1/3] Upgrade `actions/checkout` to v3 Signed-off-by: Yuki Okushi --- .github/workflows/benches.yml | 4 ++-- .github/workflows/ci.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benches.yml b/.github/workflows/benches.yml index 9588c66d..7ffc791b 100644 --- a/.github/workflows/benches.yml +++ b/.github/workflows/benches.yml @@ -13,12 +13,12 @@ jobs: run: | rustup set profile minimal rustup override set nightly - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: master - name: measure benchmarks on master run: cargo bench - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: clean: false - name: measure benchmarks on PR diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c727ff70..9eebe189 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: # MSRV and nightly version: [1.60.0, nightly] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set toolchain run: | From ceac86fdaf3c397d868e25775fc888ec49a735d8 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 18 Jun 2022 11:05:09 +0900 Subject: [PATCH 2/3] Run GHA on Ubuntu 22.04 Signed-off-by: Yuki Okushi --- .github/workflows/benches.yml | 2 +- .github/workflows/ci.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benches.yml b/.github/workflows/benches.yml index 7ffc791b..c9969a28 100644 --- a/.github/workflows/benches.yml +++ b/.github/workflows/benches.yml @@ -7,7 +7,7 @@ jobs: bench_between_master_and_pr: if: ${{ github.event.label.name == 'run-benchmarks' }} name: Bench - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Setup nightly toolchain run: | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9eebe189..34515d8f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ on: jobs: ci: name: CI - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: From 25811a57ca6983d6b18ec190bd5bcbca6083a9ef Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 18 Jun 2022 11:07:59 +0900 Subject: [PATCH 3/3] Use Swatinem/rust-cache Signed-off-by: Yuki Okushi --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34515d8f..1fc3d527 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,8 @@ jobs: rustup set profile minimal rustup override set ${{ matrix.version }} + - uses: Swatinem/rust-cache@v1.4.0 + - name: Rustfmt check if: matrix.version == '1.60.0' run: |