-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
55 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
types: [ "review_requested", "ready_for_review" ] | ||
workflow_dispatch: | ||
name: Windows | ||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
BUILD_TYPE: Release | ||
jobs: | ||
build: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
strategy: | ||
matrix: | ||
config: | ||
- name: "x64" | ||
os: windows-latest | ||
artifact: "Windows-x64" | ||
fail-fast: false | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: "Get Conan" | ||
uses: turtlebrowser/get-conan@main | ||
- name: "Install Conan" | ||
run: conan install conan/conanfile-windows.txt --profile:host=conan/conanprofile-windows.txt --profile:build=conan/conanprofile-windows.txt -s compiler.cppstd=20 --build=missing | ||
- name: "CMake Build" | ||
working-directory: ${{github.workspace}}/build | ||
run: | | ||
cmake .. -G "Visual Studio 17 2022" -DCMAKE_TOOLCHAIN_FILE="${{github.workspace}}/build/generators/conan_toolchain.cmake" | ||
cmake --build . --config ${{env.BUILD_TYPE}} | ||
- name: "CMake Install" | ||
working-directory: ${{github.workspace}}/build | ||
run: cmake --install . --prefix "${{github.workspace}}/install" | ||
- name: "CMake Test" | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest | ||
- name: Upload | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
path: ${{github.workspace}}/install | ||
name: ${{matrix.config.artifact}}-${{env.BUILD_TYPE}} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.