Build Lure #9
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: Build Lure | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: # Allows manual triggering from GitHub UI | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Visual Studio | |
uses: microsoft/setup-msbuild@v1 | |
with: | |
vs-version: 'latest' | |
- name: Install vcpkg | |
run: | | |
git clone https://github.com/microsoft/vcpkg.git | |
.\vcpkg\bootstrap-vcpkg.bat | |
.\vcpkg\vcpkg integrate install | |
- name: Install dependencies | |
run: | | |
.\vcpkg\vcpkg install | |
- name: Build with MSBuild | |
run: | | |
msbuild Lure.sln /p:Configuration=Release | |
- name: List directory contents before copy | |
run: | | |
dir Lure\Release | |
- name: Copy DLL | |
run: | | |
mkdir output | |
copy Lure\Release\Lure.dll output\Lure.dll | |
- name: List directory contents after copy | |
run: | | |
dir output | |
- name: Upload DLL as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Lure-dll | |
path: output/Lure.dll # Ensure this is relative and correct |