Conan --> Vcpkg #108
Workflow file for this run
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
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 | |
GITHUB_ACTIONS: true | |
VCPKG_ROOT: ${{github.workspace}}/vcpkg | |
jobs: | |
build: | |
name: ${{ matrix.config.name }} | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- name: "Build on x64" | |
os: windows-latest | |
fail-fast: false | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Setup Environment" | |
run: mkdir build | |
- name: "Vcpkg" | |
uses: johnwason/vcpkg-action@v5 | |
id: vcpkg | |
with: | |
pkgs: boost-locale curl gettext gettext-libintl gtest jsoncpp maddy openssl | |
triplet: x64-windows | |
cache-key: ${{ matrix.config.os }} | |
revision: f634024a30c5afa9f04d533ad5d0c0220778fd0b | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: "Build" | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake -G "Visual Studio 17 2022" .. | |
cmake --build . --config ${{env.BUILD_TYPE}} | |
- name: "Install" | |
working-directory: ${{github.workspace}}/build | |
run: cmake --install . --prefix "${{github.workspace}}/install" | |
- name: "Test" | |
run: ${{github.workspace}}/build/Release/libaura_test.exe | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
path: ${{github.workspace}}/install | |
name: Windows-x64-${{env.BUILD_TYPE}} |