Public Emoji methods #3
This file contains hidden or 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: Windows MSVC | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'src/**' | |
| - 'include/**' | |
| - 'application/**' | |
| - 'CMakeLists.txt' | |
| - 'conanfile.py' | |
| - 'cmake/**' | |
| - '.github/workflows/windows.yml' | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - 'src/**' | |
| - 'include/**' | |
| - 'application/**' | |
| - 'CMakeLists.txt' | |
| - 'conanfile.py' | |
| - 'cmake/**' | |
| - '.github/workflows/windows.yml' | |
| env: | |
| CPM_SOURCE_CACHE: ${{ github.workspace }}/.cpm_modules | |
| BUILD_TYPE: Release | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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 CPM cache | |
| id: cache-cpm | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{env.CPM_SOURCE_CACHE}} | |
| key: ${{ runner.os }}-cpm-${{ hashFiles('cmake/CPM.cmake') }} | |
| - 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}} -s compiler.cppstd=20 -of=${{github.workspace}}/build/application/default/debug -pr default -b=missing | |
| - name: CMake configure | |
| run: cmake -B ${{github.workspace}}/build/application/default/debug -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/build/application/default/debug/conan_toolchain.cmake -DCMAKE_CXX_COMPILER=cl -DCMAKE_C_COMPILER=cl -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_LIBRARY=ON -DBUILD_APPLICATION=ON | |
| - name: CMake build | |
| run: cmake --build ${{github.workspace}}/build/application/default/debug --config ${{env.BUILD_TYPE}} |