Refactor + CI #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / CMakeInvalid workflow file
|
||
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 . |