From b25654701a47bba2181a9f17125e67bf6e60666c Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Sat, 10 Feb 2024 12:34:07 +1300 Subject: [PATCH] ci: simplify tests a bit Remove compiler and cpp_std from `build-yosys` matrix. Using `config-$CC` will instead fall back to default values. Drop `Tool versions` step and introduce `yosys-config` output instead. Rename `test-builds` to `test-compile`. --- .github/workflows/test-build.yml | 34 ++++++++++---------------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 6e304bd85e3..63d1e4b11a6 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -9,7 +9,7 @@ on: - master jobs: - test-builds: + test-compile: name: Compiler testing runs-on: ${{ matrix.os }} env: @@ -119,24 +119,13 @@ jobs: ./yosys-config || true build-yosys: - name: Reusable Yosys build + name: Reusable build runs-on: ${{ matrix.os }} env: - CC: ${{ matrix.compiler }} - CXX: ${{ matrix.compiler }} - CXXSTD: ${{ matrix.cpp_std }} + CC: clang strategy: matrix: - os: - - ubuntu-20.04 - compiler: - - 'clang' - cpp_std: - - 'c++11' - include: - # Add os_name - - os: ubuntu-20.04 - os_name: focal + os: [ubuntu-20.04] fail-fast: false steps: - name: Install Linux Dependencies @@ -167,12 +156,6 @@ jobs: echo "$(brew --prefix flex)/bin" >> $GITHUB_PATH echo "procs=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV - - name: Tool versions - shell: bash - run: | - $CC --version - $CXX --version - - name: Checkout Yosys uses: actions/checkout@v4 @@ -181,8 +164,12 @@ jobs: run: | mkdir build cd build - make -f ../Makefile config-${CC%%-*} - make -f ../Makefile -j$procs CXXSTD=$CXXSTD CC=$CC CXX=$CXX LD=$CC + make -f ../Makefile config-$CC + make -f ../Makefile -j$procs + + - name: Log yosys-config output + run: | + ./yosys-config || true - name: Compress build shell: bash @@ -191,7 +178,6 @@ jobs: tar -cvf ../build.tar share/ yosys yosys-* - name: Store build artifact - if: (matrix.cpp_std == 'c++11') && (matrix.compiler == 'clang') uses: actions/upload-artifact@v4 with: name: build-${{ matrix.os }}