Skip to content

Commit 680b623

Browse files
authored
Build and attach binaries on release (#274)
1 parent 967afa0 commit 680b623

File tree

4 files changed

+39
-9
lines changed

4 files changed

+39
-9
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: Build
2-
on: [pull_request, push]
1+
name: Build Pull Request Artifacts
2+
on: [pull_request]
33
jobs:
44
build:
55
runs-on: windows-2022
@@ -26,13 +26,13 @@ jobs:
2626
run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x64.7z al-khaser_x64.exe
2727

2828
- name: Upload x86 Binaries
29-
uses: actions/upload-artifact@v1
29+
uses: actions/upload-artifact@v4
3030
with:
3131
name: x86
3232
path: "al-khaser_x86.7z"
3333

3434
- name: Upload x64 Binaries
35-
uses: actions/upload-artifact@v1
35+
uses: actions/upload-artifact@v4
3636
with:
3737
name: x64
3838
path: "al-khaser_x64.7z"

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Release Artifacts
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: windows-2022
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Add MSBuild to PATH
13+
uses: microsoft/setup-msbuild@v1.1.3
14+
15+
- name: Restore NuGet packages
16+
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
17+
18+
- name: Build x86
19+
run: msbuild /m /p:Platform=x86 /p:Configuration=Release al-khaser.sln
20+
21+
- name: Build x64
22+
run: msbuild /m /p:Platform=x64 /p:Configuration=Release al-khaser.sln
23+
24+
- name: Zip x86 Binaries
25+
run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x86.7z al-khaser_x86.exe
26+
27+
- name: Zip x64 Binaries
28+
run: 7z a -t7z -m0=lzma2 -mx=9 -mfb=64 -md=32m -mhe=on -p"yug69gG89T98HGUY8y" al-khaser_x64.7z al-khaser_x64.exe
29+
30+
- name: Attach Binaries to release
31+
uses: AButler/upload-release-assets@v3.0
32+
with:
33+
files: "al-khaser_x*.7z"
34+
repo-token: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ It performs a bunch of common malware tricks with the goal of seeing if you stay
2727

2828
## Download
2929

30-
~~You can download the latest release here: [x86](https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser_x86.exe?raw=true) | [x64](https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser_x64.exe?raw=true).~~
31-
32-
**Sorry, binaries have been removed for now as they were triggering Google's Safe Browsing heuristics.**
30+
You can download built binaries (x86, x64) from this project's [releases page](https://github.com/LordNoteworthy/al-khaser/releases). The password for the 7zs can be found [here](https://github.com/LordNoteworthy/al-khaser/blob/master/.github/workflows/release.yml#L25).
3331

3432

3533
## Possible uses

appveyor.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)