mirror of https://github.com/YosysHQ/yosys.git
test-build.yml: test-docs should not ignore docs changes
This commit is contained in:
parent
75f01ccee8
commit
a8bad3060c
|
@ -16,12 +16,23 @@ jobs:
|
||||||
cancel_others: 'true'
|
cancel_others: 'true'
|
||||||
# only run on push *or* pull_request, not both
|
# only run on push *or* pull_request, not both
|
||||||
concurrent_skipping: 'same_content_newer'
|
concurrent_skipping: 'same_content_newer'
|
||||||
|
pre_docs_job:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
||||||
|
steps:
|
||||||
|
- id: skip_check
|
||||||
|
uses: fkirc/skip-duplicate-actions@v5
|
||||||
|
with:
|
||||||
|
paths_ignore: '["**/README.md"]'
|
||||||
|
# cancel previous builds if a new commit is pushed
|
||||||
|
cancel_others: 'true'
|
||||||
|
# only run on push *or* pull_request, not both
|
||||||
|
concurrent_skipping: 'same_content_newer'
|
||||||
|
|
||||||
build-yosys:
|
build-yosys:
|
||||||
name: Reusable build
|
name: Reusable build
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: pre_job
|
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
strategy:
|
strategy:
|
||||||
|
@ -137,8 +148,8 @@ jobs:
|
||||||
test-docs:
|
test-docs:
|
||||||
name: Run docs tests
|
name: Run docs tests
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
needs: [build-yosys, pre_job]
|
needs: [build-yosys, pre_docs_job]
|
||||||
if: needs.pre_job.outputs.should_skip != 'true'
|
if: needs.pre_docs_job.outputs.should_skip != 'true'
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
strategy:
|
strategy:
|
||||||
|
|
Loading…
Reference in New Issue