mirror of
https://github.com/OpenRTX/OpenRTX
synced 2026-08-08 12:29:06 -04:00
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:
parent
a58d4889a6
commit
ea89d8d7e7
1 changed files with 10 additions and 2 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue