Bump cppfront from 063b1ba
to f44dda9
#227
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
test: | |
name: test ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ | |
windows-latest, | |
# macos-latest, # cppfront is currently broken on AppleClang | |
ubuntu-latest, | |
] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# System set-up | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- uses: lukka/get-cmake@latest | |
- name: Install GCC 11 | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y gcc-11 g++-11 | |
echo "CC=gcc-11" >> $GITHUB_ENV | |
echo "CXX=g++-11" >> $GITHUB_ENV | |
# Main cppfront library | |
- name: Configure cppfront | |
run: cmake -G Ninja -S . -B build/cppfront -DCMAKE_BUILD_TYPE=Release | |
- name: Build cppfront | |
run: cmake --build build/cppfront --config Release | |
- name: Install cppfront locally | |
run: cmake --install build/cppfront --config Release --prefix _local | |
# Regression tests | |
- name: Configure regression tests | |
run: > | |
cmake -G Ninja -S regression-tests -B build/regression-tests -DCMAKE_BUILD_TYPE=Release | |
"-DCMAKE_PREFIX_PATH=${{github.workspace}}/_local" | |
- name: Build regression tests | |
run: cmake --build build/regression-tests --config Release | |
- name: Run regression tests | |
run: ctest --output-on-failure -C Release -j 2 | |
working-directory: build/regression-tests | |
# Example | |
- name: Configure example | |
run: > | |
cmake -G Ninja -S example -B build/example -DCMAKE_BUILD_TYPE=Release | |
"-DCMAKE_PREFIX_PATH=${{github.workspace}}/_local" | |
- name: Build example | |
run: cmake --build build/example --config Release | |
- name: Run example | |
run: ./build/example/main && cmake -E cat xyzzy |