-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
61 changed files
with
16,569 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build docs artifact with Verific | ||
|
||
on: push | ||
|
||
jobs: | ||
prepare-docs: | ||
# docs builds are needed for anything on main, any tagged versions, and any tag | ||
# or branch starting with docs-preview | ||
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/docs-preview') || startsWith(github.ref, 'refs/tags/') }} | ||
runs-on: [self-hosted, linux, x64, fast] | ||
steps: | ||
- name: Checkout Yosys | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
submodules: true | ||
|
||
- name: Runtime environment | ||
run: | | ||
echo "procs=$(nproc)" >> $GITHUB_ENV | ||
- name: Build Yosys | ||
run: | | ||
make config-clang | ||
echo "ENABLE_VERIFIC := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_EDIF := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_LIBERTY := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1" >> Makefile.conf | ||
echo "ENABLE_CCACHE := 1" >> Makefile.conf | ||
make -j${{ env.procs }} ENABLE_LTO=1 | ||
- name: Prepare docs | ||
shell: bash | ||
run: | ||
make docs/prep TARGETS= EXTRA_TARGETS= | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cmd-ref-${{ github.sha }} | ||
path: | | ||
docs/source/cmd | ||
docs/source/generated | ||
docs/source/_images | ||
docs/source/code_examples | ||
- name: Trigger RTDs build | ||
uses: dfm/[email protected] | ||
with: | ||
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }} | ||
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }} | ||
commit_ref: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,11 @@ jobs: | |
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
paths_ignore: '["**/README.md"]' | ||
# don't cancel previous builds | ||
paths_ignore: '["**/README.md", "docs/**", "guidelines/**"]' | ||
# 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' | ||
# we have special actions when running on main, so this should be off | ||
skip_after_successful_duplicate: 'false' | ||
|
||
test-verific: | ||
needs: pre-job | ||
|
@@ -70,51 +68,3 @@ jobs: | |
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
make -C sby run_ci | ||
prepare-docs: | ||
name: Generate docs artifact | ||
needs: [pre-job, test-verific] | ||
if: needs.pre-job.outputs.should_skip != 'true' | ||
runs-on: [self-hosted, linux, x64, fast] | ||
steps: | ||
- name: Checkout Yosys | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
submodules: true | ||
- name: Runtime environment | ||
run: | | ||
echo "procs=$(nproc)" >> $GITHUB_ENV | ||
- name: Build Yosys | ||
run: | | ||
make config-clang | ||
echo "ENABLE_VERIFIC := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_EDIF := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_LIBERTY := 1" >> Makefile.conf | ||
echo "ENABLE_VERIFIC_YOSYSHQ_EXTENSIONS := 1" >> Makefile.conf | ||
echo "ENABLE_CCACHE := 1" >> Makefile.conf | ||
make -j${{ env.procs }} ENABLE_LTO=1 | ||
- name: Prepare docs | ||
shell: bash | ||
run: | ||
make docs/source/cmd/abc.rst docs/gen_examples docs/gen_images docs/guidelines docs/usage docs/reqs TARGETS= EXTRA_TARGETS= | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cmd-ref-${{ github.sha }} | ||
path: | | ||
docs/source/cmd | ||
docs/source/generated | ||
docs/source/_images | ||
docs/source/code_examples | ||
- name: Trigger RTDs build | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
uses: dfm/[email protected] | ||
with: | ||
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }} | ||
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }} | ||
commit_ref: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ formats: | |
|
||
sphinx: | ||
configuration: docs/source/conf.py | ||
fail_on_warning: true | ||
|
||
python: | ||
install: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.