Skip to content

Update README.md

Update README.md #1

Workflow file for this run

name: Windows
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CPM_SOURCE_CACHE: ${{ github.workspace }}/.cpm_modules
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: create CPM cache
id: cache-cpm
uses: actions/cache@v3
with:
path: ${{env.CPM_SOURCE_CACHE}}
key: ${{ runner.os }}-cpm-${{ hashFiles('**/cmake/CPM.cmake') }}
- name: install conan to system
run: |
# choco install python --version=3.9.2
# python -m pip install --upgrade pip
pip install conan
conan --version
- name: create Conan cache
id: cache-conan
uses: actions/cache@v3
with:
path: C:\Users\runneradmin\.conan2
key: ${{ runner.os }}-conan-${{ hashFiles('**/conanfile.py') }}
- if: ${{ steps.cache-conan.outputs.cache-hit != 'true' }}
name: Conan profile detect --force
run: conan profile detect --force
- name: Conan profile show
run: conan profile show
- name: install Conan dependencies
run: conan install . -s build_type=${{env.BUILD_TYPE}} -of=${{github.workspace}}/build -pr default -b=missing
- name: CMake configure Library
run: cmake -B ${{github.workspace}}/build -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/conan_toolchain.cmake -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: CMake build Library
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: CMake configure Standalone
run: cmake -S ./Standalone -B ${{github.workspace}}/build/Standalone -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/conan_toolchain.cmake -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: CMake build Standalone
run: cmake --build ${{github.workspace}}/build/Standalone --config ${{env.BUILD_TYPE}}