Split CMake Linux builds #535
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: Smoketest / Informative / Fedora | |
on: | |
pull_request: | |
jobs: | |
test: | |
name: Compilers | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
fedora: | |
# 32 is the oldest Fedora with a new enough glm | |
- "32" | |
- "33" | |
- "34" | |
- "35" | |
- "36" | |
- "37" | |
- "38" | |
- "39" | |
- "40" | |
# 40 is expected in 2024-04 | |
# 41 is expected in 2024-11 | |
# 42 is expected in 2025-04 | |
compiler: | |
- g++ | |
- clang++ | |
build-type: | |
- Release | |
- Debug | |
container: fedora:${{ matrix.fedora }} | |
steps: | |
- name: Install Dependencies | |
run: | | |
dnf -qy update | |
dnf -qy install \ | |
git \ | |
g++ \ | |
clang \ | |
cmake \ | |
make \ | |
ccache \ | |
boost-devel \ | |
cairo-devel \ | |
glew-devel \ | |
glm-devel \ | |
libvorbis-devel \ | |
SDL2_image-devel \ | |
SDL2_mixer-devel \ | |
SDL2_ttf-devel \ | |
SDL2-devel | |
- name: Checkout Anura | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
with: | |
submodules: true | |
- name: Set ccache up | |
uses: hendrikmuhs/ccache-action@ed74d11c0b343532753ecead8a951bb09bb34bc9 # v1.2.14 | |
with: | |
key: ${{ github.job }}-fedora-${{ matrix.fedora }}-${{ matrix.compiler }}-${{ matrix.build-type }} | |
- name: Build Prep Anura | |
run: | | |
cmake buildsystem/linux-dynamic \ | |
-D CMAKE_CXX_COMPILER="${{ matrix.compiler }}" \ | |
-D CMAKE_BUILD_TYPE="${{ matrix.build-type }}" | |
- name: Build Anura | |
run: | | |
# Compile with number of available hyperthreads | |
make -j "$(getconf _NPROCESSORS_ONLN)" | |
- name: Run Unit Tests | |
run: ./anura --tests |