From 157a94a6605f7a9b859e531964478ec51c8977a7 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:56:11 +1300 Subject: [PATCH] ci: fix compiler setup `os_name` in include section needs to be explicit (putting it at the end doesn't apply to the extra jobs). Move macOS test to extra job instead of doing all gcc/clang (which isn't setup for mac anyway). Also adds name to build-yosys task. --- .github/workflows/test-build.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index d9770846c21..e1a836b53ab 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -10,6 +10,7 @@ on: jobs: build-yosys: + name: Build Yosys runs-on: ${{ matrix.os }} env: CC: ${{ matrix.compiler }} @@ -19,7 +20,6 @@ jobs: matrix: os: - ubuntu-20.04 - - macos-13 compiler: - 'clang-12' - 'gcc-11' @@ -29,20 +29,27 @@ jobs: - 'c++17' - 'c++20' include: + # Add os_name + - os: ubuntu-20.04 + os_name: focal # Build for testing - os: ubuntu-20.04 + os_name: focal + compiler: 'clang' + cpp_std: 'c++11' + # macOS build + - os: macos-13 compiler: 'clang' cpp_std: 'c++11' # Limited testing for older compilers - os: ubuntu-20.04 + os_name: focal compiler: 'clang-11' cpp_std: 'c++11' - os: ubuntu-20.04 + os_name: focal compiler: 'gcc-10' cpp_std: 'c++11' - # Add os_name - - os: ubuntu-20.04 - os_name: focal fail-fast: false steps: - name: Install Linux Dependencies