Unverified 提交 6a671aab authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

GitHub CI: Cancel in progress workflows (#1034)

上级 6a44fc39
...@@ -2,11 +2,17 @@ name: mediasoup-node ...@@ -2,11 +2,17 @@ name: mediasoup-node
on: [push, pull_request] on: [push, pull_request]
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
ci: ci:
strategy: strategy:
matrix: matrix:
# Different Node versions on Ubuntu, the latest Node on other platforms # Different Node versions on Ubuntu, the latest Node on other platforms.
ci: ci:
- os: ubuntu-22.04 - os: ubuntu-22.04
node: 16 node: 16
......
...@@ -2,6 +2,12 @@ name: mediasoup-rust ...@@ -2,6 +2,12 @@ name: mediasoup-rust
on: [push, pull_request] on: [push, pull_request]
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
......
...@@ -2,6 +2,12 @@ name: mediasoup-worker ...@@ -2,6 +2,12 @@ name: mediasoup-worker
on: [push, pull_request] on: [push, pull_request]
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs: jobs:
ci: ci:
strategy: strategy:
...@@ -31,7 +37,7 @@ jobs: ...@@ -31,7 +37,7 @@ jobs:
cxx: cl cxx: cl
# A single Node.js version should be fine for C++. # A single Node.js version should be fine for C++.
node: node:
- 16 - 18
runs-on: ${{ matrix.build.os }} runs-on: ${{ matrix.build.os }}
...@@ -66,4 +72,5 @@ jobs: ...@@ -66,4 +72,5 @@ jobs:
- run: npm run worker:build - run: npm run worker:build
- run: npm run test:worker - run: npm run test:worker
# TODO: Maybe fix this one day.
if: runner.os != 'Windows' if: runner.os != 'Windows'
name: Pull Request Stats name: Pull Request Stats
on: on:
# Run it every Monday at 1PM UTC.
schedule: schedule:
- cron: "0 13 * * 1" # Run it every Monday at 1PM UTC. - cron: "0 13 * * 1"
jobs: jobs:
stats: stats:
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
### NEXT ### NEXT
* Github workflow: Remove deprecated Ubuntu version 18.04 ([PR #1033](https://github.com/versatica/mediasoup/pull/1033)). * GitHub CI: Remove deprecated Ubuntu version 18.04 ([PR #1033](https://github.com/versatica/mediasoup/pull/1033)).
* GitHub CI: Cancel in progress workflows ([PR #1034](https://github.com/versatica/mediasoup/pull/1034)).
### 3.11.16 ### 3.11.16
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论