[geometry] Rework for filter lists #722
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: libossia | |
on: push | |
jobs: | |
build-macos: | |
runs-on: macos-14 | |
environment: 'Apple Certificate' | |
strategy: | |
matrix: | |
static: [0, 1] | |
build_type: [Release, Debug] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-mac-toolchain | |
- name: Build | |
env: | |
STATIC: ${{ matrix.static }} | |
BUILD_TYPE: ${{ matrix.build_type }} | |
run: | | |
cmake -B build -S ${GITHUB_WORKSPACE} -GNinja \ | |
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | |
-DOSSIA_STATIC=$STATIC \ | |
-DCMAKE_INSTALL_PREFIX=install \ | |
-DOSSIA_TESTING=1 \ | |
-DOSSIA_CI=1 | |
cmake --build build | |
cmake --build build --target test | |
cmake --build build --target install | |
- uses: ./.github/actions/mac-codesign | |
with: | |
path-to-sign: "install/lib" | |
output-name: libossia.zip | |
MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }} | |
MAC_CERT_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }} | |
MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }} | |
- name: Archive Package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libossia-shared-release-macos | |
path: install | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
static: [0, 1] | |
build_type: [Release, Debug] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-msvc-toolchain | |
- name : Build | |
shell: cmd | |
env: | |
STATIC: ${{ matrix.static }} | |
BUILD_TYPE: ${{ matrix.build_type }} | |
run: | | |
cmake -B build -S %GITHUB_WORKSPACE% -GNinja -DOSSIA_PCH=0 -DCMAKE_SYSTEM_VERSION=7 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -DOSSIA_STATIC=%STATIC% -DOSSIA_CI=1 -DOSSIA_TESTING=1 | |
cmake --build build | |
cmake --build build --target test | |
cmake --install build | |
- name: Archive Package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libossia-shared-release-windows | |
path: install | |
build-linux_x86: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
static: [0, 1] | |
build_type: [Release, Debug] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-ubuntu-toolchain | |
- name: Build | |
env: | |
STATIC: ${{ matrix.static }} | |
BUILD_TYPE: ${{ matrix.build_type }} | |
run: | | |
cmake -B build -S ${GITHUB_WORKSPACE} -GNinja \ | |
-DCMAKE_INSTALL_PREFIX=install \ | |
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | |
-DOSSIA_STATIC=$STATIC \ | |
-DOSSIA_CI=1 \ | |
-DOSSIA_TESTING=1 | |
cmake --build build | |
cmake --build build --target test | |
cmake --build build --target install | |
- name: Archive Package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libossia-shared-release-linux | |
path: install | |
build-linux_rpi: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
static: [0, 1] | |
build_type: [Release, Debug] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-rpi-toolchain | |
- name: Build | |
env: | |
STATIC: ${{ matrix.static }} | |
BUILD_TYPE: ${{ matrix.build_type }} | |
run: | | |
export CTEST_OUTPUT_ON_FAILURE=1 | |
export PATH=/opt/cross-pi-gcc/bin:${PATH} | |
export LD_LIBRARY_PATH=/opt/cross-pi-gcc/lib:${LD_LIBRARY_PATH} | |
cmake -B build -S ${GITHUB_WORKSPACE} \ | |
-DCMAKE_TOOLCHAIN_FILE="/opt/cross-pi-gcc/aarch64-rpi3-linux-gnu.toolchain.cmake" \ | |
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | |
-DOSSIA_STATIC=$STATIC \ | |
-DCMAKE_INSTALL_PREFIX=install \ | |
-DOSSIA_CI=1 | |
cmake --build build | |
cmake --build build --target install | |
- name: Archive Package | |
uses: actions/upload-artifact@v2 | |
with: | |
name: libossia-shared-release-rpi | |
path: install |