Skip to content

Commit

Permalink
Seperate Github Actions binary downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Gumball2415 committed Oct 19, 2023
1 parent dfb2d2f commit 2202050
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-artifact.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: build-artifact
on: push

jobs:
build-matrix:
runs-on: windows-2022
Expand All @@ -20,9 +19,8 @@ jobs:
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }} %commithash%_%GITHUB_RUN_ID%
- name: Upload binaries
uses: actions/upload-artifact@master
with:
name: build-artifacts
path: distribute/*.7z
name: Dn-FamiTracker_${{ matrix.platform }}_${{ matrix.configuration }}
path: distribute/*_${{ matrix.platform }}_${{ matrix.configuration }}.7z
5 changes: 2 additions & 3 deletions .github/workflows/build-release-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ jobs:
call msbuild -m:5 -nologo -p:Configuration="${{ matrix.configuration }}" -p:Platform="${{ matrix.platform }}"
if %ERRORLEVEL%==1 exit %ERRORLEVEL%
call release.bat ${{ matrix.configuration }} ${{ matrix.platform }}
- name: Upload binaries
uses: actions/upload-artifact@master
with:
name: build-artifacts
path: distribute/*.7z
name: Dn-FamiTracker_${{ matrix.platform }}_${{ matrix.configuration }}
path: distribute/*_${{ matrix.platform }}_${{ matrix.configuration }}.7z
6 changes: 2 additions & 4 deletions release.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ del distribute /q /f
mkdir distribute

if "%2"=="Win32" (
set conf_name=x86
goto continue
)
if "%2"=="x64" (
set conf_name=x64
goto continue
)
goto endfile
Expand All @@ -18,7 +16,7 @@ goto endfile
if "%~3"=="" goto compileversion

cd %2/%1/
call 7z a -t7z -mx=9 -mmt=3 -m0=LZMA2:d=26:fb=128 -ms=on ..\..\distribute\Dn-FamiTracker_"%~3"_%conf_name%_"%~1".7z Dn-FamiTracker.exe Dn-FamiTracker.chm Dn-FamiTracker.pdb vc143.pdb ..\..\changelog.txt ..\..\demo
call 7z a -t7z -mx=9 -mmt=3 -m0=LZMA2:d=26:fb=128 -ms=on ..\..\distribute\Dn-FamiTracker_"%~3"_"%~2"_"%~1".7z Dn-FamiTracker.exe Dn-FamiTracker.chm Dn-FamiTracker.pdb vc143.pdb ..\..\changelog.txt ..\..\demo
cd ..\..
goto endfile

Expand All @@ -29,6 +27,6 @@ for /F "tokens=1,2,3,4,5 delims=, " %%A in (Dn-FamiTracker.rc) do (
)
)
cd %2/%1/
call 7z a -t7z -mx=9 -mmt=3 -m0=LZMA2:d=26:fb=128 -ms=on ..\..\distribute\Dn-FamiTracker_%version%_%conf_name%_"%~1".7z Dn-FamiTracker.exe Dn-FamiTracker.chm Dn-FamiTracker.pdb vc143.pdb ..\..\changelog.txt ..\..\demo
call 7z a -t7z -mx=9 -mmt=3 -m0=LZMA2:d=26:fb=128 -ms=on ..\..\distribute\Dn-FamiTracker_%version%_"%~2"_"%~1".7z Dn-FamiTracker.exe Dn-FamiTracker.chm Dn-FamiTracker.pdb vc143.pdb ..\..\changelog.txt ..\..\demo
cd ..\..
:endfile

0 comments on commit 2202050

Please sign in to comment.