Skip to content

Refactor + CI

Refactor + CI #32

Workflow file for this run

name: CMake
on:
push:
branches: ["master", "conan2"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release, Debug]
steps:
- uses: actions/checkout@v4
- name: Get conan
uses: turtlebrowser/[email protected]
- name: Get conan home
id: conan-home
run: echo "CONAN_HOME=$(conan config home)" >> $GITHUB_OUTPUT
- name: Cache conan packages
uses: actions/cache@v4
with:
path: ${{ steps.conan-home.outputs.CONAN_HOME/p}}

Check failure on line 30 in .github/workflows/cmake.yaml

View workflow run for this annotation

GitHub Actions / CMake

Invalid workflow file

The workflow is not valid. .github/workflows/cmake.yaml (Line: 30, Col: 15): Unexpected symbol: 'CONAN_HOME/p'. Located at position 26 within expression: steps.conan-home.outputs.CONAN_HOME/p
key: ${{ matrix.os }}-${{ matrix.build_type }}-packages
- name: Create default profile
run: conan profile detect --force
- name: Install dependencies
run: |
conan install . \
--settings build_type=${{ matrix.build_type }} \
--build=missing \
--conf tools.system.package_manager:mode=install \
--conf tools.system.package_manager:sudo=True
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Install dependencies
run: |
conan install . \
--settings build_type=${{ matrix.build_type }} \
--build=missing
if: ${{ matrix.os == 'windows-latest' }}
- name: Build
run: conan build .