Skip to content

Commit

Permalink
Merge pull request ayoubfaouzi#240 from graysuit/master
Browse files Browse the repository at this point in the history
 This will build and upload binaries
  • Loading branch information
ayoubfaouzi authored Jul 6, 2021
2 parents 66c0a8a + 7f9bb0b commit a4442a5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build
on: [pull_request, push]
jobs:
build:
runs-on: windows-2019

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: Upload x86 Binaries
uses: actions/upload-artifact@v1
with:
name: x86
path: "al-khaser_x86.7z"

- name: Upload x64 Binaries
uses: actions/upload-artifact@v1
with:
name: x64
path: "al-khaser_x64.7z"

0 comments on commit a4442a5

Please sign in to comment.