Skip to content

Add more workflows on Linux to test boost-filesystem #528

Add more workflows on Linux to test boost-filesystem

Add more workflows on Linux to test boost-filesystem #528

Workflow file for this run

name: Ubuntu Linux (x86_64)
on:
push:
branches:
- "*"
tags:
- "*"
pull_request:
branches:
- "*"
jobs:
build-shared:
name: Build Linux (${{ matrix.artifact-name }})
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
include:
- shared-libs: ON
boost: OFF
runs-on: ubuntu-24.04
artifact-name: shared-stlfs-ubuntu24
- shared-libs: OFF
boost: OFF
runs-on: ubuntu-24.04
artifact-name: static-stlfs-ubuntu24
- shared-libs: ON
boost: ON
runs-on: ubuntu-24.04
artifact-name: shared-boostfs-ubuntu24
- shared-libs: OFF
boost: ON
runs-on: ubuntu-24.04
artifact-name: static-boostfs-ubuntu24
- shared-libs: ON
boost: OFF
runs-on: ubuntu-22.04
artifact-name: shared-stlfs-ubuntu22
- shared-libs: OFF
boost: OFF
runs-on: ubuntu-22.04
artifact-name: static-stlfs-ubuntu22
- shared-libs: ON
boost: ON
runs-on: ubuntu-22.04
artifact-name: shared-boostfs-ubuntu22
- shared-libs: OFF
boost: ON
runs-on: ubuntu-22.04
artifact-name: static-boostfs-ubuntu22
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev mesa-common-dev libsdl2-dev libglm-dev libgtest-dev libgmock-dev ninja-build
- name: Configure Build
run: |
cmake -G "Ninja Multi-Config" \
-S "${{ github.workspace }}" \
-B "${{ github.workspace }}/cmake-build" \
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install" \
-DCMAKE_VERBOSE_MAKEFILE=YES \
-DBUILD_SHARED_LIBS="${{ matrix.shared-libs }}" \
-DENABLE_BOOST_FILESYSTEM="${{ matrix.boost }}" \
-DBUILD_TESTING=YES
- name: Build Debug
run: cmake --build "${{ github.workspace }}/cmake-build" --config "Debug" --parallel
- name: Run Unit Tests
run: ctest --test-dir "${{ github.workspace }}/cmake-build" --verbose --build-config "Debug"
- name: Build Release
run: cmake --build "${{ github.workspace }}/cmake-build" --config "Release" --parallel
- name: Install
run: |
cmake --build "${{ github.workspace }}/cmake-build" --config "Debug" --target install
cmake --build "${{ github.workspace }}/cmake-build" --config "Release" --target install
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: projectm-linux-${{ matrix.artifact-name }}
path: install/*