update
#59
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: Main CI | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- '.github/workflows/main_ci.yml' | |
- 'cmake/**' | |
- 'src/**' | |
- 'CMakeLists.txt' | |
- 'CMakePresets.json' | |
- 'vcpkg-configuration.json' | |
- 'vcpkg.json' | |
pull_request: | |
branches: [ main, feature/* ] | |
workflow_dispatch: | |
env: | |
VCPKG_COMMIT_ID: 93895b28ea7bc8cda10f156c5d336f3fc070f8b1 | |
jobs: | |
build-vcpkg: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
path: main | |
submodules: recursive | |
- name: Setup MSVC Environment | |
uses: ilammy/[email protected] | |
- name: Setup vcpkg | |
uses: lukka/run-vcpkg@v11 | |
with: | |
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }} | |
- name: Build | |
uses: lukka/[email protected] | |
with: | |
cmakeListsTxtPath: ${{ github.workspace }}/main/CMakeLists.txt | |
configurePreset: 'vs2022-windows' | |
buildPreset: 'vs2022-windows' | |