chore: Switch to vcpkg for deps #96
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: CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v1 | |
- name: vcpkg build | |
uses: johnwason/vcpkg-action@v6 | |
id: vcpkg | |
with: | |
pkgs: pkgconf fmt ztd-text wil tomlplusplus lua rapidjson | |
triplet: x64-windows-static | |
token: ${{ github.token }} | |
github-binarycache: true | |
- name: Build Solution | |
run: | | |
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -S . -B build | |
cmake --build build --config Release | |
- name: Copy Artifacts | |
run: | | |
mkdir artifacts | |
cp build/Release/DBGHELP.dll artifacts | |
cp config/LuaBackend.toml artifacts | |
- name: Upload DBGHELP | |
uses: actions/upload-artifact@v3 | |
with: | |
name: DBGHELP | |
path: artifacts |