-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and attach binaries on release (#274)
- Loading branch information
Showing
4 changed files
with
39 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build Release Artifacts | ||
on: | ||
release: | ||
types: [published] | ||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add MSBuild to PATH | ||
uses: microsoft/[email protected] | ||
|
||
- name: Restore NuGet packages | ||
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | ||
|
||
- name: Build x86 | ||
run: msbuild /m /p:Platform=x86 /p:Configuration=Release al-khaser.sln | ||
|
||
- name: Build x64 | ||
run: msbuild /m /p:Platform=x64 /p:Configuration=Release al-khaser.sln | ||
|
||
- name: Zip x86 Binaries | ||
run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x86.7z al-khaser_x86.exe | ||
|
||
- name: Zip x64 Binaries | ||
run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x64.7z al-khaser_x64.exe | ||
|
||
- name: Attach Binaries to release | ||
uses: AButler/[email protected] | ||
with: | ||
files: "al-khaser_x*.7z" | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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 was deleted.
Oops, something went wrong.