Update README.md #288
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: windows | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Get premake5 | |
run: | | |
cd binary | |
curl https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip -O -J -L | |
7z x premake-5.0.0-beta2-windows.zip | |
dir | |
./premake5.exe vs2019 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
with: | |
msbuild-architecture: 'x64' | |
- name: Build app for release | |
run: msbuild D:\a\gwater2\gwater2\binary\gmcl_gwater2.vcxproj -t:rebuild -verbosity:diag -property:Configuration=Release -p:platform=x64 | |
- name: Check if it compiled successfully | |
run: | | |
cd D:\a\gwater2\gwater2\binary\ | |
dir | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4.3.1 | |
with: | |
name: gmcl_gwater2_win64.dll | |
path: D:\a\gwater2\gwater2\binary\x86_64\Release\gmcl_gwater2_win64.dll | |
if-no-files-found: error | |