Skip to content

Compile for Windows

Compile for Windows #8

name: Compile for Windows
on:
[workflow_dispatch]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup Nuget
uses: nuget/setup-nuget@v1
- name: Restore Nuget packages
run: nuget restore Source\visual_studio_2019\Pikifen.sln
- name: Build app for release
run: msbuild Source\visual_studio_2019\Pikifen.vcxproj -t:rebuild -verbosity:n -property:Configuration=Release -property:Platform=x64
- name: Copy Files to build directory
run: |
new-item ${{ github.workspace }}\build -itemtype directory
copy-item -Path ${{ github.workspace }}\Source\visual_studio_2019\x64\Release\Pikifen.exe -Destination ${{ github.workspace }}\build -PassThru
- name: Publish artifact
uses: actions/[email protected]
with:
name: Pikifen
path: ${{ github.workspace }}\build\