mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-30 05:09:04 +00:00
Merge pull request #5363 from KrystalDelusion/krys/yosyshq-only-jobs
This commit is contained in:
commit
991561fe98
6 changed files with 8 additions and 8 deletions
2
.github/workflows/prepare-docs.yml
vendored
2
.github/workflows/prepare-docs.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
# docs builds are needed for anything on main, any tagged versions, and any tag
|
# docs builds are needed for anything on main, any tagged versions, and any tag
|
||||||
# or branch starting with docs-preview
|
# or branch starting with docs-preview
|
||||||
needs: check_docs_rebuild
|
needs: check_docs_rebuild
|
||||||
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' }}
|
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
|
||||||
runs-on: [self-hosted, linux, x64, fast]
|
runs-on: [self-hosted, linux, x64, fast]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Yosys
|
- name: Checkout Yosys
|
||||||
|
|
2
.github/workflows/test-build.yml
vendored
2
.github/workflows/test-build.yml
vendored
|
@ -253,7 +253,7 @@ jobs:
|
||||||
name: Try build docs
|
name: Try build docs
|
||||||
runs-on: [self-hosted, linux, x64, fast]
|
runs-on: [self-hosted, linux, x64, fast]
|
||||||
needs: [pre_docs_job]
|
needs: [pre_docs_job]
|
||||||
if: needs.pre_docs_job.outputs.should_skip != 'true'
|
if: ${{ needs.pre_docs_job.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
docs-target: [html, latexpdf]
|
docs-target: [html, latexpdf]
|
||||||
|
|
2
.github/workflows/test-verific.yml
vendored
2
.github/workflows/test-verific.yml
vendored
|
@ -27,7 +27,7 @@ jobs:
|
||||||
|
|
||||||
test-verific:
|
test-verific:
|
||||||
needs: pre-job
|
needs: pre-job
|
||||||
if: needs.pre-job.outputs.should_skip != 'true'
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
|
||||||
runs-on: [self-hosted, linux, x64, fast]
|
runs-on: [self-hosted, linux, x64, fast]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Yosys
|
- name: Checkout Yosys
|
||||||
|
|
1
.github/workflows/update-flake-lock.yml
vendored
1
.github/workflows/update-flake-lock.yml
vendored
|
@ -6,6 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
lockfile:
|
||||||
|
if: github.repository == 'YosysHQ/Yosys'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
8
.github/workflows/version.yml
vendored
8
.github/workflows/version.yml
vendored
|
@ -7,6 +7,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump-version:
|
bump-version:
|
||||||
|
if: github.repository == 'YosysHQ/Yosys'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -18,11 +19,8 @@ jobs:
|
||||||
- name: Take last commit
|
- name: Take last commit
|
||||||
id: log
|
id: log
|
||||||
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
|
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
|
||||||
- name: Take repository
|
|
||||||
id: repo
|
|
||||||
run: echo "message=$GITHUB_REPOSITORY" >> $GITHUB_OUTPUT
|
|
||||||
- name: Bump version
|
- name: Bump version
|
||||||
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
|
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
|
||||||
run: |
|
run: |
|
||||||
make bumpversion
|
make bumpversion
|
||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
@ -30,7 +28,7 @@ jobs:
|
||||||
git add Makefile
|
git add Makefile
|
||||||
git commit -m "Bump version"
|
git commit -m "Bump version"
|
||||||
- name: Push changes # push the output folder to your repo
|
- name: Push changes # push the output folder to your repo
|
||||||
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
|
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
|
||||||
uses: ad-m/github-push-action@master
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
1
.github/workflows/wheels.yml
vendored
1
.github/workflows/wheels.yml
vendored
|
@ -124,6 +124,7 @@ jobs:
|
||||||
path: ./wheelhouse/*.whl
|
path: ./wheelhouse/*.whl
|
||||||
upload_wheels:
|
upload_wheels:
|
||||||
name: Upload Wheels
|
name: Upload Wheels
|
||||||
|
if: github.repository == 'YosysHQ/Yosys'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Specifying a GitHub environment is optional, but strongly encouraged
|
# Specifying a GitHub environment is optional, but strongly encouraged
|
||||||
environment: pypi
|
environment: pypi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue