ci: cancel superseded PR runs and add job timeouts

Pushing to a PR branch now cancels the previous in-progress run
instead of queueing a duplicate ~40 minute build. Runs on branches
(master included) are never cancelled. Also drop the unused
RADIO_TOOL_VERSION env var.

Signed-off-by: Vlastimil Slinták <slintak@uart.cz>
This commit is contained in:
Vlastimil Slinták 2026-07-04 20:40:57 +02:00 committed by silseva
parent a58d4889a6
commit ea89d8d7e7

View file

@ -5,12 +5,18 @@ on:
pull_request:
env:
RADIO_TOOL_VERSION: 0.2.2
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
DEVCONTAINER_NAME: ghcr.io/openrtx/openrtx-devcontainer
# Cancel superseded runs of the same PR, keep all runs on branches
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
unit-test:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v4
@ -47,6 +53,7 @@ jobs:
cat build/coverage/coverage.md >> $GITHUB_STEP_SUMMARY
build-zephyr:
runs-on: ubuntu-22.04
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v4
@ -80,6 +87,7 @@ jobs:
app/build/openrtx_*.uf2
build:
runs-on: ubuntu-24.04
timeout-minutes: 120
steps:
- name: Checkout
uses: actions/checkout@v4