ci: working on test setup

This commit is contained in:
Krystine Sherwin 2024-02-06 11:48:38 +13:00
parent 2bec6e3e0a
commit 1ef21efe3f
No known key found for this signature in database
1 changed files with 7 additions and 6 deletions

View File

@ -121,7 +121,7 @@ jobs:
shell: bash shell: bash
run: | run: |
cd build cd build
tar -cvf ../build.tar Makefile.conf share/ yosys yosys-* tar -cvf ../build.tar share/ yosys yosys-*
- name: Store build artifact - name: Store build artifact
if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'gcc-11') if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'gcc-11')
@ -134,11 +134,12 @@ jobs:
test-linux: test-linux:
name: Run tests name: Run tests
needs: build-linux needs: build-linux
runs-on: ${{ matrix.os.id }} runs-on: ${{ matrix.os }}
env:
CC: clang
strategy: strategy:
matrix: matrix:
os: os: [ubuntu-20.04]
- { id: ubuntu-20.04, name: focal }
steps: steps:
- name: Install Dependencies - name: Install Dependencies
shell: bash shell: bash
@ -171,7 +172,7 @@ jobs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: .local/ path: .local/
key: ${{ matrix.os.id }}-${{ env.IVERILOG_GIT }} key: ${{ matrix.os }}-${{ env.IVERILOG_GIT }}
- name: Build iverilog - name: Build iverilog
if: steps.cache-iverilog.outputs.cache-hit != 'true' if: steps.cache-iverilog.outputs.cache-hit != 'true'
@ -197,4 +198,4 @@ jobs:
- name: Run tests - name: Run tests
shell: bash shell: bash
run: | run: |
make -j${{ env.procs }} test TARGETS= EXTRA_TARGETS= make -j$procs test TARGETS= EXTRA_TARGETS= CONFIG=$CC