chore(deps): update flagpp remote #29
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
on: | |
workflow_dispatch: | |
push: | |
branches: ["**"] | |
paths-ignore: | |
- "**/*.md" | |
name: π§ͺ Run Tests | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: [x86, x64] | |
config: [Release, Debug] | |
type: [linux, mingw, windows, windows-clang] | |
include: | |
- type: linux | |
container: fedora:38 # g++ on ubuntu latest does not include P2210R2 | |
deps: sudo dnf install -y git cmake gcc gcc-c++ ninja-build | |
- type: mingw | |
container: archlinux:multilib-devel | |
deps: pacman --noconfirm -Syyu cmake gcc git make mingw-w64 wine | |
- type: mingw | |
arch: x86 | |
cmake_args: -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-x86.cmake | |
- type: mingw | |
arch: x64 | |
cmake_args: -DCMAKE_TOOLCHAIN_FILE=cmake/mingw-x64.cmake | |
- type: windows | |
arch: x86 | |
cmake_args: -A Win32 | |
- type: windows | |
arch: x64 | |
cmake_args: -A x64 | |
- type: windows-clang | |
arch: x86 | |
cmake_args: -T ClangCL -A Win32 | |
- type: windows-clang | |
arch: x64 | |
cmake_args: -T ClangCL -A x64 | |
exclude: | |
- type: linux | |
arch: x86 | |
runs-on: ${{ contains(matrix.type, 'windows') && 'windows-latest' || 'ubuntu-latest' }} | |
container: ${{ matrix.container }} | |
name: "${{ matrix.type }} (πΎ: ${{ matrix.arch }}, βοΈ: ${{ matrix.config }})" | |
steps: | |
- name: π¦ Checkout | |
uses: actions/checkout@v4 | |
- name: π§° Dependencies | |
run: ${{ matrix.deps }} | |
- name: π§ Compile | |
run: | | |
cmake -B build -Dlime_tests=ON ${{ matrix.cmake_args }} | |
cmake --build build --config ${{ matrix.config }} | |
- name: π¬ Run Tests | |
if: ${{ matrix.type != 'mingw' }} | |
run: | | |
ctest --test-dir build/tests -C ${{ matrix.config }} --verbose | |
- name: π¬ Run Tests (Wine) | |
if: ${{ matrix.type == 'mingw' }} | |
run: | | |
mkdir prefix | |
WINEPREFIX="$(pwd)/prefix" wine ./build/tests/lime-tests.exe |