Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github action for automatic building of binaries and zipping #260

Merged
merged 11 commits into from
Nov 23, 2024
30 changes: 30 additions & 0 deletions .github/workflows/pyinstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: binary_creation
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: generate loki.exe
uses: JackMcKew/pyinstaller-action-windows@main
with:
spec: loki.spec
path: .
- name: generate loki-uprader.exe
uses: JackMcKew/pyinstaller-action-windows@main
with:
spec: loki-upgrader.spec
path: .
- name: create subdir
run: mkdir dist/windows/tools
- name: copy additional files
run: cp tools/pe-sieve*.exe dist/windows/tools
- name: zip files
uses: edgarrc/action-7z@v1
with:
args: 7z a -tzip -mm=Deflate -mmt=off -mx5 -mfb=32 -mpass=1 -sccUTF-8 -mem=AES256 build.7z dist/windows
- name: upload files
uses: actions/upload-artifact@v4
with:
name: loki-binaries
path: dist/windows
Loading