forked from Dn-Programming-Core-Management/Dn-FamiTracker
-
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.
Merge pull request Dn-Programming-Core-Management#237 from Gumball241…
…5/main Improve CI build workflow
- Loading branch information
Showing
3 changed files
with
33 additions
and
18 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
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 |
---|---|---|
@@ -1,26 +1,41 @@ | ||
name: build-artifact-publish | ||
on: | ||
release: | ||
types: [published] | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
build-matrix-publish: | ||
runs-on: windows-2022 | ||
strategy: | ||
matrix: | ||
platform: [x64, Win32] | ||
configuration: [Release, Debug] | ||
# configuration is Release only | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Build program | ||
shell: cmd | ||
run: | | ||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsamd64_x86.bat" | ||
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}" | ||
call msbuild -m:5 -nologo -p:Configuration="Release" -p:Platform="${{ matrix.platform }}" | ||
if %ERRORLEVEL%==1 exit %ERRORLEVEL% | ||
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }} | ||
call release.bat Release ${{ matrix.platform }} | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: build-artifacts | ||
path: distribute/*.7z | ||
path: distribute/*_${{ matrix.platform }}_Release.7z | ||
publish-build: | ||
needs: build-matrix-publish | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/download-artifact@master | ||
- name: Download binaries | ||
shell: powershell | ||
run: ls -R | ||
- name: Upload release | ||
uses: marvinpinto/action-automatic-releases@master | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
draft: true | ||
prerelease: false | ||
automatic_release_tag: draft | ||
files: artifact/*.7z |
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