forked from shapedbyiris/AEC3
-
Notifications
You must be signed in to change notification settings - Fork 2
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
3e140ba
commit 65e4d53
Showing
1 changed file
with
33 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,33 @@ | ||
name: windows | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Configure CMake | ||
run: cmake -B build -G "Visual Studio 16 2019" -A x64 | ||
|
||
- name: Build release configuration | ||
run: cmake --build build --config Release | ||
|
||
- name: Build debug configuration | ||
run: cmake --build build --config Debug | ||
|
||
- name: Pack NuGet | ||
run: nuget pack shapedbyiris.aec3.nuspec -p version=$((Get-Date).tostring("yyyy.MMdd.HHmm")) | ||
|
||
- name: Publish | ||
if: github.event_name != 'pull_request' | ||
run: nuget push *.nupkg -Source "https://nuget.pkg.github.com/shapedbyiris/index.json" -SkipDuplicate -ApiKey "${{secrets.GITHUB_TOKEN}}" |