Build system overhaul #122
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 / openSUSE Leap | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
test: | |
name: Compilers | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
suse: | |
# 15.2 is the oldest openSUSE Leap with a new enough clang | |
- "15.4" | |
- "15.5" | |
compiler: | |
- g++ | |
- clang | |
container: opensuse/leap:${{ matrix.suse }} | |
steps: | |
- name: Resolve Compiler Package Name | |
run: | | |
if [[ ${{ matrix.compiler }} == g++ ]] | |
then | |
echo compiler=gcc-c++ >> "$GITHUB_ENV" | |
else | |
echo compiler=clang >> "$GITHUB_ENV" | |
fi | |
- name: Install Dependencies | |
run: | | |
zypper --non-interactive update | |
zypper --non-interactive install \ | |
tar \ | |
gzip \ | |
git \ | |
${{ env.compiler }} \ | |
cmake \ | |
make \ | |
ccache \ | |
boost-devel \ | |
cairo-devel \ | |
glew-devel \ | |
glm-devel \ | |
libboost_filesystem*6*devel \ | |
libboost_locale*6*devel \ | |
libboost_regex*6*devel \ | |
libboost_system*6*devel \ | |
libboost_thread*6*devel \ | |
libicu-devel \ | |
libSDL2_image-devel \ | |
libSDL2_mixer-devel \ | |
libSDL2_ttf-devel \ | |
libSDL2-devel \ | |
libvorbis-devel | |
- name: Checkout Anura | |
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
submodules: true | |
- name: Set ccache up | |
uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 | |
with: | |
key: ${{ github.job }}-opensuse-leap-${{ matrix.suse }}-${{ matrix.compiler }} | |
- name: Build Anura | |
env: | |
CXX: ${{ matrix.compiler }} | |
# Compile with number of available hyperthreads | |
run: | | |
cmake . | |
make -j "$(getconf _NPROCESSORS_ONLN)" | |
- name: Run Unit Tests | |
run: ./anura --tests |