mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-20 10:10:23 +00:00
ci: Adjust workflow triggers for tests
In light of problems with concurrent skipping, disable it. Instead, limit the `push` trigger to just main, and enable `workflow_dispatch` for manual triggering. Don't cancel builds from main if a new commit is pushed.
This commit is contained in:
parent
2d90e80b52
commit
73403ad830
4 changed files with 52 additions and 19 deletions
16
.github/workflows/extra-builds.yml
vendored
16
.github/workflows/extra-builds.yml
vendored
|
@ -1,6 +1,14 @@
|
||||||
name: Test extra build flows
|
name: Test extra build flows
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
# always test main
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# test PRs
|
||||||
|
pull_request:
|
||||||
|
# allow triggering tests, ignores skip check
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
|
@ -11,11 +19,11 @@ jobs:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
with:
|
with:
|
||||||
|
# don't run on documentation changes
|
||||||
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
||||||
# cancel previous builds if a new commit is pushed
|
# cancel previous builds if a new commit is pushed
|
||||||
cancel_others: 'true'
|
# but never cancel main
|
||||||
# only run on push *or* pull_request, not both
|
cancel_others: ${{ github.ref != 'refs/heads/main' }}
|
||||||
concurrent_skipping: 'same_content_newer'
|
|
||||||
|
|
||||||
vs-prep:
|
vs-prep:
|
||||||
name: Prepare Visual Studio build
|
name: Prepare Visual Studio build
|
||||||
|
|
23
.github/workflows/test-build.yml
vendored
23
.github/workflows/test-build.yml
vendored
|
@ -1,6 +1,14 @@
|
||||||
name: Build and run tests
|
name: Build and run tests
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
# always test main
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# test PRs
|
||||||
|
pull_request:
|
||||||
|
# allow triggering tests, ignores skip check
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
|
@ -11,11 +19,12 @@ jobs:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
with:
|
with:
|
||||||
|
# don't run on documentation changes
|
||||||
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
||||||
# cancel previous builds if a new commit is pushed
|
# cancel previous builds if a new commit is pushed
|
||||||
cancel_others: 'true'
|
# but never cancel main
|
||||||
# only run on push *or* pull_request, not both
|
cancel_others: ${{ github.ref != 'refs/heads/main' }}
|
||||||
concurrent_skipping: 'same_content_newer'
|
|
||||||
pre_docs_job:
|
pre_docs_job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
|
@ -24,11 +33,11 @@ jobs:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
with:
|
with:
|
||||||
|
# don't run on readme changes
|
||||||
paths_ignore: '["**/README.md"]'
|
paths_ignore: '["**/README.md"]'
|
||||||
# cancel previous builds if a new commit is pushed
|
# cancel previous builds if a new commit is pushed
|
||||||
cancel_others: 'true'
|
# but never cancel main
|
||||||
# only run on push *or* pull_request, not both
|
cancel_others: ${{ github.ref != 'refs/heads/main' }}
|
||||||
concurrent_skipping: 'same_content_newer'
|
|
||||||
|
|
||||||
build-yosys:
|
build-yosys:
|
||||||
name: Reusable build
|
name: Reusable build
|
||||||
|
|
16
.github/workflows/test-compile.yml
vendored
16
.github/workflows/test-compile.yml
vendored
|
@ -1,6 +1,14 @@
|
||||||
name: Compiler testing
|
name: Compiler testing
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
# always test main
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# test PRs
|
||||||
|
pull_request:
|
||||||
|
# allow triggering tests, ignores skip check
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
|
@ -11,11 +19,11 @@ jobs:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
with:
|
with:
|
||||||
|
# don't run on documentation changes
|
||||||
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
||||||
# cancel previous builds if a new commit is pushed
|
# cancel previous builds if a new commit is pushed
|
||||||
cancel_others: 'true'
|
# but never cancel main
|
||||||
# only run on push *or* pull_request, not both
|
cancel_others: ${{ github.ref != 'refs/heads/main' }}
|
||||||
concurrent_skipping: 'same_content_newer'
|
|
||||||
|
|
||||||
test-compile:
|
test-compile:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
16
.github/workflows/test-verific.yml
vendored
16
.github/workflows/test-verific.yml
vendored
|
@ -1,6 +1,14 @@
|
||||||
name: Build and run tests with Verific (Linux)
|
name: Build and run tests with Verific (Linux)
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
# always test main
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
# test PRs
|
||||||
|
pull_request:
|
||||||
|
# allow triggering tests, ignores skip check
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre-job:
|
pre-job:
|
||||||
|
@ -11,11 +19,11 @@ jobs:
|
||||||
- id: skip_check
|
- id: skip_check
|
||||||
uses: fkirc/skip-duplicate-actions@v5
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
with:
|
with:
|
||||||
|
# don't run on documentation changes
|
||||||
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]'
|
||||||
# cancel previous builds if a new commit is pushed
|
# cancel previous builds if a new commit is pushed
|
||||||
cancel_others: 'true'
|
# but never cancel main
|
||||||
# only run on push *or* pull_request, not both
|
cancel_others: ${{ github.ref != 'refs/heads/main' }}
|
||||||
concurrent_skipping: 'same_content_newer'
|
|
||||||
|
|
||||||
test-verific:
|
test-verific:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue