Skip to content

Merge pull request #19 from Technica-Engineering/renovate/actions-che… #77

Merge pull request #19 from Technica-Engineering/renovate/actions-che…

Merge pull request #19 from Technica-Engineering/renovate/actions-che… #77

Workflow file for this run

name: CMake
on: [push, pull_request, fork, workflow_dispatch]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
- os: windows-latest
- os: macos-latest
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Create Build Environment
run: cmake -E make_directory build
- name: Configure CMake
working-directory: build
run: cmake .. -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
working-directory: build
run: |
cmake --build . --config ${{env.BUILD_TYPE}}
cmake --install . --prefix ../dist --component blf_converter
- name: Test
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: 'Upload Artifacts'
uses: actions/upload-artifact@v3
with:
name: ${{matrix.os}} artifacts
path: dist