Skip to content

efe

efe #200

Workflow file for this run

name: CI Workflow
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/panduza/pzacxx-build-img:latest
strategy:
matrix:
os: [linux]
compiler: [gcc]
build_type: [debug, release]
lib_type: [shared, static]
exclude:
- os: linux
compiler: mingw
- os: win
compiler: gcc
- os: win
compiler: clang
steps:
- name: Checkout
uses: actions/checkout@v4
- if: ${{ env.ACT }}
name: Hack container for local development
run: pacman -S --noconfirm nodejs
- name: "cache"
uses: actions/cache@v2
with:
path: ~/.conan2/p
key: conan-cache-${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.build_type }}-${{ matrix.lib_type }}
- id: build_type
uses: ASzc/change-string-case-action@v6
with:
string: ${{ matrix.build_type }}
- name: "Install"
run: |
if [ "${{ matrix.lib_type }}" = "static" ]; then
shared="False"
else
shared="True"
fi
conan install -pr:b ./conan_profiles/linux_gcc -pr:h ./conan_profiles/${{ matrix.os }}_${{ matrix.compiler }} --build=missing -s build_type=${{ steps.build_type.outputs.capitalized }} -o shared=$shared .
- name: "Build"
run: |
cmake --preset ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.lib_type }}
cmake --build --preset ${{ matrix.os }}-${{ matrix.compiler }}-${{ matrix.lib_type }}-${{ matrix.build_type }}