From 10cb84ccc850fd0fb0aa5ff8975326f7c1c064e5 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 14 Aug 2024 20:31:19 +0200 Subject: [PATCH 1/2] ci: cancel previous runs on further pushes The idea here is to cancel all runs that are in progress, when a new push to a branch happens. Typically, a pipeline is invalid as soon as changes are merged. A new pipeline will start anyway. To save computing time, and to prevent users from many expected "pipeline has failed" messages, this is beneficial. The impact is especially visible if you do frequent pushes in a short period of time. More info: https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre --- .github/workflows/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index eabd035fc..c0d8e25be 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -13,6 +13,9 @@ on: - cron: '0 0 * * 0-6' env: RUSTFLAGS: -D warnings +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: test_aarch64: name: Integration Test (AArch64) From 8c2556a18a8083be1e9e13a68e9acc5ae10bff52 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Wed, 14 Aug 2024 20:31:48 +0200 Subject: [PATCH 2/2] ci: use ubuntu-latest everywhere --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index c0d8e25be..0f09f2701 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -19,7 +19,7 @@ concurrency: jobs: test_aarch64: name: Integration Test (AArch64) - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v4 @@ -47,7 +47,7 @@ jobs: timeout-minutes: 4 test_ia32: name: Integration Test (IA-32) - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - name: Checkout sources uses: actions/checkout@v4