forked from YosysHQ/yosys
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'YosysHQ:main' into wallace_tree
- Loading branch information
Showing
464 changed files
with
56,847 additions
and
12,800 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
$Format:%h$ | ||
$Format:%H$ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Build docs artifact with Verific | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
check_docs_rebuild: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
skip_check: ${{ steps.skip_check.outputs.should_skip }} | ||
docs_export: ${{ steps.docs_var.outputs.docs_export }} | ||
env: | ||
docs_export: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/docs-preview') || startsWith(github.ref, 'refs/tags/') }} | ||
steps: | ||
- id: skip_check | ||
uses: fkirc/skip-duplicate-actions@v5 | ||
with: | ||
paths_ignore: '["**/README.md"]' | ||
# don't cancel in case we're updating docs | ||
cancel_others: 'false' | ||
# only run on push *or* pull_request, not both | ||
concurrent_skipping: ${{ env.docs_export && 'never' || 'same_content_newer'}} | ||
- id: docs_var | ||
run: echo "docs_export=${{ env.docs_export }}" >> $GITHUB_OUTPUT | ||
|
||
prepare-docs: | ||
# docs builds are needed for anything on main, any tagged versions, and any tag | ||
# or branch starting with docs-preview | ||
needs: check_docs_rebuild | ||
if: ${{ needs.check_docs_rebuild.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/prep -j${{ env.procs }} 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: Install doc prereqs | ||
shell: bash | ||
run: | | ||
make docs/reqs | ||
- name: Test build docs | ||
shell: bash | ||
run: | | ||
make -C docs html -j${{ env.procs }} TARGETS= EXTRA_TARGETS= | ||
- name: Trigger RTDs build | ||
if: ${{ needs.check_docs_rebuild.outputs.docs_export == 'true' }} | ||
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Create source archive with vendored dependencies | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
vendor-sources: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository with submodules | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Create clean tarball | ||
run: | | ||
git archive --format=tar HEAD -o yosys-src-vendored.tar | ||
git submodule foreach ' | ||
git archive --format=tar --prefix="${sm_path}/" HEAD --output=${toplevel}/vendor-${name}.tar | ||
' | ||
# 2008 bug https://lists.gnu.org/archive/html/bug-tar/2008-08/msg00002.html | ||
for file in vendor-*.tar; do | ||
tar --concatenate --file=yosys-src-vendored.tar "$file" | ||
done | ||
gzip yosys-src-vendored.tar | ||
- name: Store tarball artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: vendored-sources | ||
path: yosys-src-vendored.tar.gz | ||
retention-days: 1 |
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
Oops, something went wrong.