mirror of https://github.com/YosysHQ/yosys.git
Docs: can we re-use build artifacts?
This commit is contained in:
parent
57a7532227
commit
bb4d69005f
|
@ -113,8 +113,44 @@ jobs:
|
||||||
make config-${CC%%-*}
|
make config-${CC%%-*}
|
||||||
make -j${{ env.procs }} CCXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
|
make -j${{ env.procs }} CCXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
|
||||||
|
|
||||||
|
- name: Store build artifact
|
||||||
|
if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'gcc-11')
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: compiled-yosys
|
||||||
|
path: yosys
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'gcc-11')
|
if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'gcc-11')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
make -j${{ env.procs }} test CXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
|
make -j${{ env.procs }} test CXXSTD=${{ matrix.cpp_std }} CC=$CC CXX=$CC LD=$CC
|
||||||
|
|
||||||
|
test-docs:
|
||||||
|
name: test documentation code samples
|
||||||
|
needs: test-linux
|
||||||
|
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: Runtime environment
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
WORKSPACE: ${{ github.workspace }}
|
||||||
|
run: |
|
||||||
|
echo "procs=$(nproc)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Download build artifact
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: compiled-yosys
|
||||||
|
|
||||||
|
- name: Run tests
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
make -C docs test -j${{ env.procs }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue