From 8720ddb9f9ecfcd06a2b8fb7c13d7b7d3140457b Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:26:00 -0400 Subject: [PATCH 01/30] Add old compilers to CI Currently, we use the default Clang and GCC on the CI machines. This commit installs older versions, allowing us to maintain support for old compilers. --- .github/workflows/build-and-test.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index d2ed165..393afc9 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,7 +36,7 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang++, g++] + compiler: [clang++, g++-9, g++-10, g++-11, g++-12] runner: [ubuntu-22.04, ubuntu-20.04] runs-on: ${{ matrix.runner }} @@ -44,10 +44,12 @@ jobs: - name: Checkout uses: actions/checkout@v3 - #- name: Install Compilers - # run: | - # sudo apt update - # sudo apt install g++-9 g++-10 llvm-10 clang-10 + - name: Install Compiler + run: | + sudo apt update + sudo apt install ${{ matrix.compiler }} + set CXX ${{ matrix.compiler }} + ${{ matrix.compiler }} --version - name: Build env: From 5cde9c983b95b363d654b91f0ac2f35bf8111884 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:32:34 -0400 Subject: [PATCH 02/30] Add Clang versions --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 393afc9..66226d9 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,7 +36,7 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang++, g++-9, g++-10, g++-11, g++-12] + compiler: [clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10, clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] runner: [ubuntu-22.04, ubuntu-20.04] runs-on: ${{ matrix.runner }} From fe6c63d666759a617dee662bfb4325c892db946a Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:35:30 -0400 Subject: [PATCH 03/30] Try without Clang --- .github/workflows/build-and-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 66226d9..45a4043 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,7 +36,8 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10, clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] + #compiler: [clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10, clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] + compiler: [g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] runner: [ubuntu-22.04, ubuntu-20.04] runs-on: ${{ matrix.runner }} From 438e5416e672ddcb07f59540f587cd3122ddf2ae Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:37:51 -0400 Subject: [PATCH 04/30] List apt matches --- .github/workflows/build-and-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 45a4043..6fbb7a1 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,6 +48,8 @@ jobs: - name: Install Compiler run: | sudo apt update + apt search clang + apt search g++ sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From b638cdee300b514e0ff5c267c623357720fdcef4 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:43:29 -0400 Subject: [PATCH 05/30] List only names --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 6fbb7a1..b303ce2 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,8 +48,8 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search clang - apt search g++ + apt search --names-only clang + apt search --names-only g++ sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From c614f4be0dc23d0899294a527bbf9d8ece6cffd1 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:47:04 -0400 Subject: [PATCH 06/30] Try a different method --- .github/workflows/build-and-test.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index b303ce2..2dafd0d 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,8 +48,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search --names-only clang - apt search --names-only g++ + apt search ^clang$ sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 9658e75d8981d7d460d07cfb7a7e8f2951fe5518 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:48:30 -0400 Subject: [PATCH 07/30] Check g++ --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 2dafd0d..c5ae370 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,7 +48,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^clang$ + apt search ^g++$ sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 7c92acab70e01d503b3efa9c1c9f5f70bbb27890 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 05:52:30 -0400 Subject: [PATCH 08/30] Check gcc --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c5ae370..f0da4e8 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,7 +48,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^g++$ + apt search ^gcc$ sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 141246e4798a72cbfab9916ee4dd8f66ceffb02c Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:00:55 -0400 Subject: [PATCH 09/30] Don't force the last char --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index f0da4e8..86c08e0 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -48,7 +48,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^gcc$ + apt search ^gcc sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 3d6274b71a6881818695deb53cba1fc5a57368d0 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:06:46 -0400 Subject: [PATCH 10/30] Fix GCC installs --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 86c08e0..c0c4c22 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -37,7 +37,7 @@ jobs: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms #compiler: [clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10, clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] - compiler: [g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] + compiler: [gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] runner: [ubuntu-22.04, ubuntu-20.04] runs-on: ${{ matrix.runner }} @@ -48,7 +48,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^gcc + apt search ^clang sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From e359132138d22a57926e132931131f04070e55c1 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:10:51 -0400 Subject: [PATCH 11/30] Fix Clang installs --- .github/workflows/build-and-test.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c0c4c22..71504d3 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,8 +36,7 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - #compiler: [clang-4, clang-5, clang-6, clang-7, clang-8, clang-9, clang-10, clang-11, clang-12, clang-13, clang-14, clang-15, clang-16, g++-7, g++-8, g++-9, g++-10, g++-11, g++-12] - compiler: [gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] + compiler: [clang-11, clang-12, clang-13, clang-14, gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] runner: [ubuntu-22.04, ubuntu-20.04] runs-on: ${{ matrix.runner }} From babdf64a2a21df518dd186cd87d0a18d620a8cf2 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:22:35 -0400 Subject: [PATCH 12/30] Only add Clang 13 and 14 on Ubuntu 22 --- .github/workflows/build-and-test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 71504d3..9d0a121 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,8 +36,11 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-11, clang-12, clang-13, clang-14, gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] + compiler: [clang-11, clang-12, gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] runner: [ubuntu-22.04, ubuntu-20.04] + include: + - runner: ubuntu-22.04 + compiler: [clang-13, clang-14] runs-on: ${{ matrix.runner }} steps: From eacf4f56872eb8e2c65e1fe0b392d8e4d8975ed8 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:27:01 -0400 Subject: [PATCH 13/30] Add old versions of Clang to old Ubuntu --- .github/workflows/build-and-test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 9d0a121..40d19f7 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -39,6 +39,8 @@ jobs: compiler: [clang-11, clang-12, gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] runner: [ubuntu-22.04, ubuntu-20.04] include: + - runner: ubuntu-20.04 + compiler: [clang-6, clang-7, clang-8, clang-9, clang-10] - runner: ubuntu-22.04 compiler: [clang-13, clang-14] runs-on: ${{ matrix.runner }} @@ -50,7 +52,7 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^clang + apt search ^gcc sudo apt install ${{ matrix.compiler }} set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 6f2552f7a79c9cdc273d3abfce90ac7f5c12f948 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:32:36 -0400 Subject: [PATCH 14/30] Remove array --- .github/workflows/build-and-test.yaml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 40d19f7..c43966f 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,13 +36,20 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-11, clang-12, gcc-7, gcc-8, gcc-9, gcc-10, gcc-11, gcc-12] + compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11, gcc-12] runner: [ubuntu-22.04, ubuntu-20.04] include: - runner: ubuntu-20.04 - compiler: [clang-6, clang-7, clang-8, clang-9, clang-10] + compiler: clang-6 + compiler: clang-7 + compiler: clang-8 + compiler: clang-9 + compiler: clang-10 + compiler: gcc-7 + compiler: gcc-8 - runner: ubuntu-22.04 - compiler: [clang-13, clang-14] + compiler: clang-13 + compiler: clang-14 runs-on: ${{ matrix.runner }} steps: From cea42dc56c7f7bcfb1e0a70cc874c4da92ca59ff Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:34:48 -0400 Subject: [PATCH 15/30] Try multiple includes --- .github/workflows/build-and-test.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index c43966f..8f01bec 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -41,14 +41,21 @@ jobs: include: - runner: ubuntu-20.04 compiler: clang-6 + - runner: ubuntu-20.04 compiler: clang-7 + - runner: ubuntu-20.04 compiler: clang-8 + - runner: ubuntu-20.04 compiler: clang-9 + - runner: ubuntu-20.04 compiler: clang-10 + - runner: ubuntu-20.04 compiler: gcc-7 + - runner: ubuntu-20.04 compiler: gcc-8 - runner: ubuntu-22.04 compiler: clang-13 + - runner: ubuntu-22.04 compiler: clang-14 runs-on: ${{ matrix.runner }} From 346cbdd5e3700fd559b181259bdbe7d2b1045129 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:43:49 -0400 Subject: [PATCH 16/30] More attempts --- .github/workflows/build-and-test.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 8f01bec..1ea361c 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,7 +36,7 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11, gcc-12] + compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11] runner: [ubuntu-22.04, ubuntu-20.04] include: - runner: ubuntu-20.04 @@ -57,6 +57,8 @@ jobs: compiler: clang-13 - runner: ubuntu-22.04 compiler: clang-14 + - runner: ubuntu-22.04 + compiler: gcc-12 runs-on: ${{ matrix.runner }} steps: From 4d00c7b3431c1005a391e901e48c7cc252790d6e Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:47:51 -0400 Subject: [PATCH 17/30] Try exclude --- .github/workflows/build-and-test.yaml | 45 ++++++++++++++------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 1ea361c..02d3ada 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,29 +36,32 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11] + compiler: [clang-6, clang-11, clang-12, gcc-9, gcc-10, gcc-11] runner: [ubuntu-22.04, ubuntu-20.04] - include: - - runner: ubuntu-20.04 - compiler: clang-6 - - runner: ubuntu-20.04 - compiler: clang-7 - - runner: ubuntu-20.04 - compiler: clang-8 - - runner: ubuntu-20.04 - compiler: clang-9 - - runner: ubuntu-20.04 - compiler: clang-10 - - runner: ubuntu-20.04 - compiler: gcc-7 - - runner: ubuntu-20.04 - compiler: gcc-8 - - runner: ubuntu-22.04 - compiler: clang-13 + exclude: - runner: ubuntu-22.04 - compiler: clang-14 - - runner: ubuntu-22.04 - compiler: gcc-12 + compiler: clang-6 + #include: + # - runner: ubuntu-20.04 + # compiler: clang-6 + # - runner: ubuntu-20.04 + # compiler: clang-7 + # - runner: ubuntu-20.04 + # compiler: clang-8 + # - runner: ubuntu-20.04 + # compiler: clang-9 + # - runner: ubuntu-20.04 + # compiler: clang-10 + # - runner: ubuntu-20.04 + # compiler: gcc-7 + # - runner: ubuntu-20.04 + # compiler: gcc-8 + # - runner: ubuntu-22.04 + # compiler: clang-13 + # - runner: ubuntu-22.04 + # compiler: clang-14 + # - runner: ubuntu-22.04 + # compiler: gcc-12 runs-on: ${{ matrix.runner }} steps: From ad37b35828ab8137e2ecdb677ecd86fe962830f3 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 06:57:32 -0400 Subject: [PATCH 18/30] Try update-alternatives --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 02d3ada..d5969ca 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -71,8 +71,8 @@ jobs: - name: Install Compiler run: | sudo apt update - apt search ^gcc sudo apt install ${{ matrix.compiler }} + sudo update-alternatives --install /usr/bin/gcc /usr/bin/${{ matrix.compiler }} 50 set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 84e57051dcc0dd2a86cf9f6f3bb0e52fe4d79e14 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 07:00:00 -0400 Subject: [PATCH 19/30] Fix update-alternatives --- .github/workflows/build-and-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index d5969ca..56f9303 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -72,7 +72,8 @@ jobs: run: | sudo apt update sudo apt install ${{ matrix.compiler }} - sudo update-alternatives --install /usr/bin/gcc /usr/bin/${{ matrix.compiler }} 50 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From 1b5a310db23aa0708f9b8a52a86e9e0a469e4405 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 07:02:42 -0400 Subject: [PATCH 20/30] Add clang search logging --- .github/workflows/build-and-test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 56f9303..5bc9d9f 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -71,6 +71,7 @@ jobs: - name: Install Compiler run: | sudo apt update + apt search ^clang sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 From 87c574e0f0c7222d811737c7c5dc22e969df5edf Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 07:05:51 -0400 Subject: [PATCH 21/30] Remove Clang 6 --- .github/workflows/build-and-test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 5bc9d9f..5d9903e 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -36,7 +36,7 @@ jobs: strategy: matrix: platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms - compiler: [clang-6, clang-11, clang-12, gcc-9, gcc-10, gcc-11] + compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11] runner: [ubuntu-22.04, ubuntu-20.04] exclude: - runner: ubuntu-22.04 From 086a13283d3fa12987933bdb2ab776d22a24144f Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 07:46:54 -0400 Subject: [PATCH 22/30] Try uninstalling first --- .github/workflows/build-and-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 5d9903e..da2c55d 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -71,6 +71,8 @@ jobs: - name: Install Compiler run: | sudo apt update + sudo apt uninstall gcc + sudo apt uninstall clang apt search ^clang sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 From acf40f48eed680e889228627f82fa17cf7ecb34f Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:03:07 -0400 Subject: [PATCH 23/30] Fix apt uninstall --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index da2c55d..cbe5372 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -71,8 +71,8 @@ jobs: - name: Install Compiler run: | sudo apt update - sudo apt uninstall gcc - sudo apt uninstall clang + sudo apt remove gcc + sudo apt remove clang apt search ^clang sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 From 6da64d99ed2f527efc701ad98754bdc5cd2d44af Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:15:59 -0400 Subject: [PATCH 24/30] Try to not set CXX --- .github/workflows/build-and-test.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index cbe5372..fe698c1 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -77,12 +77,12 @@ jobs: sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 - set CXX ${{ matrix.compiler }} + #set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version - name: Build - env: - CXX: ${{ matrix.compiler }} + #env: + # CXX: ${{ matrix.compiler }} working-directory: ${{ github.workspace }}/Projects/Make run: make From 52b66df1d959496169eab1ca75cb7386676f1942 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:18:02 -0400 Subject: [PATCH 25/30] Don't use alternative --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index fe698c1..e82055c 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -75,8 +75,8 @@ jobs: sudo apt remove clang apt search ^clang sudo apt install ${{ matrix.compiler }} - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 - sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 + #sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 + #sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 #set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version From ef3265c024197784d5b1fc807d8121f09082a759 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:25:28 -0400 Subject: [PATCH 26/30] Set CXX --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index e82055c..53bf576 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -81,8 +81,8 @@ jobs: ${{ matrix.compiler }} --version - name: Build - #env: - # CXX: ${{ matrix.compiler }} + env: + CXX: ${{ matrix.compiler }} working-directory: ${{ github.workspace }}/Projects/Make run: make From 0053eb878e9bb8a48db13c58cc369c9a4f00b5be Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:27:16 -0400 Subject: [PATCH 27/30] Set alternative instead of CXX --- .github/workflows/build-and-test.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index 53bf576..fe698c1 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -75,14 +75,14 @@ jobs: sudo apt remove clang apt search ^clang sudo apt install ${{ matrix.compiler }} - #sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 - #sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 + sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 + sudo update-alternatives --install /usr/bin/clang clang /usr/bin/${{ matrix.compiler }} 50 #set CXX ${{ matrix.compiler }} ${{ matrix.compiler }} --version - name: Build - env: - CXX: ${{ matrix.compiler }} + #env: + # CXX: ${{ matrix.compiler }} working-directory: ${{ github.workspace }}/Projects/Make run: make From 86aaee483932cfcdba6657e4936cb6fc2e5121a4 Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:29:39 -0400 Subject: [PATCH 28/30] Try setting CXX --- .github/workflows/build-and-test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index fe698c1..fcca467 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -81,8 +81,8 @@ jobs: ${{ matrix.compiler }} --version - name: Build - #env: - # CXX: ${{ matrix.compiler }} + env: + CXX: ${{ matrix.compiler }} working-directory: ${{ github.workspace }}/Projects/Make run: make From 936fe4c2b579a240d3f7ba351b635335383ef15c Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 08:51:37 -0400 Subject: [PATCH 29/30] Remove alternatives --- .github/workflows/build-and-test.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index fcca467..d089f0f 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -73,6 +73,9 @@ jobs: sudo apt update sudo apt remove gcc sudo apt remove clang + sudo update-alternatives --remove-all gcc + sudo update-alternatives --remove-all g++ + sudo update-alternatives --remove-all clang apt search ^clang sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 From 2d106d40ede0215d01312715bd42057eddb817cd Mon Sep 17 00:00:00 2001 From: Chris Blume Date: Mon, 10 Oct 2022 09:01:37 -0400 Subject: [PATCH 30/30] Foo --- .github/workflows/build-and-test.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index d089f0f..b8a58ef 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -73,9 +73,9 @@ jobs: sudo apt update sudo apt remove gcc sudo apt remove clang - sudo update-alternatives --remove-all gcc - sudo update-alternatives --remove-all g++ - sudo update-alternatives --remove-all clang + #sudo update-alternatives --remove-all gcc + #sudo update-alternatives --remove-all g++ + #sudo update-alternatives --remove-all clang apt search ^clang sudo apt install ${{ matrix.compiler }} sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/${{ matrix.compiler }} 50 @@ -85,7 +85,8 @@ jobs: - name: Build env: - CXX: ${{ matrix.compiler }} + #CXX: ${{ matrix.compiler }} + CXX: gcc working-directory: ${{ github.workspace }}/Projects/Make run: make