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 master
- Loading branch information
Showing
340 changed files
with
11,619 additions
and
9,746 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build and test doc code samples | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install gperf build-essential bison flex libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot pkg-config python3 libboost-system-dev libboost-python-dev libboost-filesystem-dev zlib1g-dev | ||
- name: Setup GCC | ||
uses: Dup4/actions-setup-gcc@v1 | ||
|
||
- name: Runtime environment | ||
shell: bash | ||
env: | ||
WORKSPACE: ${{ github.workspace }} | ||
run: | | ||
echo "GITHUB_WORKSPACE=`pwd`" >> $GITHUB_ENV | ||
echo "$GITHUB_WORKSPACE/.local/bin" >> $GITHUB_PATH | ||
echo "procs=$(nproc)" >> $GITHUB_ENV | ||
- name: Checkout Yosys | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build yosys | ||
shell: bash | ||
run: | | ||
make config-gcc | ||
make -j${{ env.procs }} | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
make -C docs test -j${{ env.procs }} |
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,77 @@ | ||
name: Build and run tests with Verific (Linux) | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test-verific: | ||
runs-on: [self-hosted, linux, x64] | ||
steps: | ||
- name: Checkout Yosys | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
|
||
- 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_CCACHE := 1" >> Makefile.conf | ||
make -j${{ env.procs }} | ||
- name: Install Yosys | ||
run: | | ||
make install DESTDIR=${GITHUB_WORKSPACE}/.local PREFIX= | ||
- name: Checkout Documentation | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
path: 'yosys-cmd-ref' | ||
repository: 'YosysHQ-Docs/yosys-cmd-ref' | ||
fetch-depth: 0 | ||
token: ${{ secrets.CI_DOCS_UPDATE_PAT }} | ||
persist-credentials: true | ||
|
||
- name: Update documentation | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
make docs | ||
rm -rf docs/build | ||
cd yosys-cmd-ref | ||
rm -rf * | ||
git checkout README.md | ||
cp -R ../docs/* . | ||
rm -rf util/__pycache__ | ||
git add -A . | ||
git diff-index --quiet HEAD || git commit -m "Update" | ||
git push | ||
- name: Checkout SBY | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'YosysHQ/sby' | ||
path: 'sby' | ||
|
||
- name: Build SBY | ||
run: | | ||
make -C sby install DESTDIR=${GITHUB_WORKSPACE}/.local PREFIX= | ||
- name: Run Yosys tests | ||
run: | | ||
make -j${{ env.procs }} test | ||
- name: Run Verific specific Yosys tests | ||
run: | | ||
make -C tests/sva | ||
cd tests/svtypes && bash run-test.sh | ||
- name: Run SBY tests | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
make -C sby run_ci |
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.