-
Notifications
You must be signed in to change notification settings - Fork 893
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
1 parent
449135a
commit 7e7b952
Showing
2 changed files
with
48 additions
and
0 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,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 python 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