Skip to content

Update build.yml

Update build.yml #4

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
jobs:
build:
name: "Build"
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- os: ubuntu-latest
conan-install-cmd: conan install conanfile-linux.txt -s compiler.cppstd=gnu20
- os: windows-latest
conan-install-cmd: conan install conanfile-windows.txt -s compiler.cppstd=gnu20
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: ${{ matrix.config.conan-install-cmd }}
- name: "CMake Build"
uses: threeal/[email protected]
with:
run-build: true