Skip to content

Build

Build #11

Workflow file for this run

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
types: [ "review_requested", "ready_for_review" ]
workflow_dispatch:
name: Build
permissions:
id-token: write
contents: read
env:
BUILD_TYPE: Release
jobs:
build:
name: "Build"
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
artifact: "Linux-x64.zip"
conan-file: conanfile-linux.txt
- os: windows-latest
artifact: "Windows-x64.zip"
conan-file: conanfile-windows.txt
fail-fast: false
steps:
- name: "Checkout"
uses: actions/[email protected]
with:
submodules: recursive
- name: "Get Conan"
uses: turtlebrowser/get-conan@main
- name: "Create Conan Profile"
run: conan profile detect --force
- name: "Install Conan"
run: conan install ${{ matrix.config.conan-file }} -s compiler.cppstd=20 --build=missing --output-folder=${{github.workspace}}/build
- name: "CMake Configuration"
run: cmake -B ${{github.workspace}}/build -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: "CMake Build"
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: "CMake Install"
run: cmake --install ${{github.workspace}}/build --prefix ${{github.workspace}}/install
- name: Upload
uses: actions/upload-artifact@v1
with:
path: ${{github.workspace}}/install
name: ${{ matrix.config.artifact }}-${{env.BUILD_TYPE}}