forked from Raais/ImStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5520fde
commit 959cc9e
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Windows | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
env: | ||
# Configuration type to build. | ||
# You can convert this to a build matrix if you need coverage of multiple configuration types. | ||
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
BUILD_CONFIGURATION: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: self-hosteds | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Environment | ||
run: | | ||
curl -OLS https://github.com/wixtoolset/wix3/releases/download/wix3111rtm/wix311.exe | ||
.\wix311.exe /install /quiet /norestart | ||
$wixToolsetBinPath = ";C:\Program Files (x86)\WiX Toolset v3.11\bin;" | ||
$env:PATH = $env:PATH + $wixToolsetBinPath | ||
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat" | ||
- name: Build | ||
working-directory: ${{env.GITHUB_WORKSPACE}} | ||
run: | | ||
md build | ||
cd build | ||
& "C:/Program Files/CMake/bin/cmake.exe" .. -DCMAKE_BUILD_TYPE=${{env.BUILD_CONFIGURATION}} | ||
& "C:/Program Files/CMake/bin/cmake.exe" --build . --config ${{env.BUILD_CONFIGURATION}} | ||
& "C:/Program Files/CMake/bin/cpack.exe" --verbose | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Windows Installer | ||
path: | | ||
build/packages/*.* |