Skip to content

Commit

Permalink
Build and attach binaries on release (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
holysoles authored Sep 22, 2024
1 parent 967afa0 commit 680b623
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Build
on: [pull_request, push]
name: Build Pull Request Artifacts
on: [pull_request]
jobs:
build:
runs-on: windows-2022
Expand All @@ -26,13 +26,13 @@ jobs:
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
uses: actions/upload-artifact@v4
with:
name: x86
path: "al-khaser_x86.7z"

- name: Upload x64 Binaries
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: x64
path: "al-khaser_x64.7z"
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
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 }}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ It performs a bunch of common malware tricks with the goal of seeing if you stay

## Download

~~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).~~

**Sorry, binaries have been removed for now as they were triggering Google's Safe Browsing heuristics.**
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).


## Possible uses
Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml

This file was deleted.

0 comments on commit 680b623

Please sign in to comment.