Change the style of constexpr loops to fix GCC 13 ICEing. Drop Clang … #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: [push, pull_request] | |
jobs: | |
Tests: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: | | |
# Install latest GCC. | |
sudo apt install -y g++-12 | |
# Install latest Clang. | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 16 | |
sudo ./llvm.sh 17 | |
# Remove unsupported Clang. | |
sudo apt remove clang-13 | |
- name: Clone deps | |
run: git clone https://github.com/HolyBlackCat/macro_sequence_for ../macro_sequence_for | |
- name: List compilers | |
run: make -pq | grep ^COMPILER | |
- name: Confirm installed compilers | |
run: which clang++-17 clang++-16 clang++-15 clang++-14 g++-13 g++-12 g++-11 g++-10 | |
- name: Run tests | |
run: make CXXFLAGS='-Werror' | |
Tests-MSVC: | |
runs-on: windows-latest | |
steps: | |
- name: Locate MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Setup MSYS2 | |
uses: msys2/setup-msys2@v2 | |
with: | |
update: true | |
install: make | |
path-type: inherit | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Clone deps | |
run: git clone https://github.com/HolyBlackCat/macro_sequence_for ../macro_sequence_for | |
- name: Run tests | |
run: | | |
make COMPILER='cl clang-cl' | |
shell: msys2 {0} |