Skip to content

Fix literals longer than one char and add literals tests #9

Fix literals longer than one char and add literals tests

Fix literals longer than one char and add literals tests #9

Workflow file for this run

name: CI
on:
push:
branches: [ master, main ]
pull_request:
jobs:
gcc:
strategy:
fail-fast: false
matrix:
version: [9, 11, 13]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install GCC ${{ matrix.version }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-${{ matrix.version }} g++-${{ matrix.version }}
- name: Run test suite
env:
CXX: g++-${{ matrix.version }}
run: make check DRIVEROPTS=-vvf
clang:
strategy:
fail-fast: false
matrix:
version: [16, 17]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Clang ${{ matrix.version }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.version }} main'
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y g++-13 clang-${{ matrix.version }}
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 110 --slave /usr/bin/g++ g++ /usr/bin/g++-13
- name: Run test suite
env:
CXX: clang++-${{ matrix.version }}
run: make check DRIVEROPTS=-vvf
clang-libcxx:
strategy:
fail-fast: false
matrix:
version: [15, 17]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install Clang ${{ matrix.version }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.version }} main'
sudo apt-get update
sudo apt-get install -y clang-${{ matrix.version }} libc++-${{ matrix.version }}-dev libc++abi-${{ matrix.version }}-dev
- name: Run test suite
env:
CXX: clang++-${{ matrix.version }}
CXXFLAGS: -stdlib=libc++
run: make check DRIVEROPTS=-vvf
emscripten:
strategy:
fail-fast: true
matrix:
version: [ latest ]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install emscripten ${{ matrix.version }}
run: |
cd
git clone --depth=1 https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install ${{ matrix.version }}
./emsdk activate ${{ matrix.version }}
- name: Run test suite
shell: bash
env:
CXX: em++
run: |
source ~/emsdk/emsdk_env.sh
make check DRIVEROPTS=-vvf
msvc:
if: false
strategy:
fail-fast: false
matrix:
os: [windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Configure test
run: cmake -S . -B build -DCMAKE_BUILD_TYPE:STRING=Release
- name: Compile test
run: cmake --build build --config Release