Skip to content

Add old compilers to CI #187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: tip-of-tree
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8720ddb
Add old compilers to CI
ProgramMax Oct 10, 2022
5cde9c9
Add Clang versions
ProgramMax Oct 10, 2022
fe6c63d
Try without Clang
ProgramMax Oct 10, 2022
438e541
List apt matches
ProgramMax Oct 10, 2022
b638cde
List only names
ProgramMax Oct 10, 2022
c614f4b
Try a different method
ProgramMax Oct 10, 2022
9658e75
Check g++
ProgramMax Oct 10, 2022
7c92aca
Check gcc
ProgramMax Oct 10, 2022
141246e
Don't force the last char
ProgramMax Oct 10, 2022
3d6274b
Fix GCC installs
ProgramMax Oct 10, 2022
e359132
Fix Clang installs
ProgramMax Oct 10, 2022
babdf64
Only add Clang 13 and 14 on Ubuntu 22
ProgramMax Oct 10, 2022
eacf4f5
Add old versions of Clang to old Ubuntu
ProgramMax Oct 10, 2022
6f2552f
Remove array
ProgramMax Oct 10, 2022
cea42dc
Try multiple includes
ProgramMax Oct 10, 2022
346cbdd
More attempts
ProgramMax Oct 10, 2022
4d00c7b
Try exclude
ProgramMax Oct 10, 2022
ad37b35
Try update-alternatives
ProgramMax Oct 10, 2022
84e5705
Fix update-alternatives
ProgramMax Oct 10, 2022
1b5a310
Add clang search logging
ProgramMax Oct 10, 2022
87c574e
Remove Clang 6
ProgramMax Oct 10, 2022
086a132
Try uninstalling first
ProgramMax Oct 10, 2022
acf40f4
Fix apt uninstall
ProgramMax Oct 10, 2022
6da64d9
Try to not set CXX
ProgramMax Oct 10, 2022
52b66df
Don't use alternative
ProgramMax Oct 10, 2022
ef3265c
Set CXX
ProgramMax Oct 10, 2022
0053eb8
Set alternative instead of CXX
ProgramMax Oct 10, 2022
86aaee4
Try setting CXX
ProgramMax Oct 10, 2022
936fe4c
Remove alternatives
ProgramMax Oct 10, 2022
2d106d4
Foo
ProgramMax Oct 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 41 additions & 6 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,57 @@ jobs:
strategy:
matrix:
platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms
compiler: [clang++, g++]
compiler: [clang-11, clang-12, gcc-9, gcc-10, gcc-11]
runner: [ubuntu-22.04, ubuntu-20.04]
exclude:
- runner: ubuntu-22.04
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:
- 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 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
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 }}
#CXX: ${{ matrix.compiler }}
CXX: gcc
working-directory: ${{ github.workspace }}/Projects/Make
run: make

Expand Down