Skip to content

Migrate CI to GitHub Actions #2

Migrate CI to GitHub Actions

Migrate CI to GitHub Actions #2

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
build_type:
- Debug
- Release
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: recursive
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.*
- name: Build
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
export CMAKE_GENERATOR=Ninja
fi
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX=install -DLIBBNDL_BUILD_UI=ON
cmake --build build
cmake --install build
- uses: actions/upload-artifact@v4
with:
name: libbndl-${{ matrix.build_type }}-${{ matrix.os }}
path: install/*