forked from Open-Wine-Components/umu-launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: add standalone binary using nuitka
- Loading branch information
1 parent
c38f0c3
commit a39dbf1
Showing
1 changed file
with
73 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: UMU Standalone Build - Focal (Ubuntu 20.04 LTS) | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
cache: pip | ||
python-version: '3.12' | ||
check-latest: true | ||
architecture: x64 | ||
|
||
- name: Install build dependencies | ||
run: pip3 install nuitka ordered-set | ||
|
||
- name: Install target dependencies | ||
run: | | ||
pip3 install -r requirements.in | ||
- name: Prepare source | ||
run: | | ||
./configure.sh --user-install | ||
make version | ||
- name: Build | ||
run: >- | ||
python -m nuitka | ||
--assume-yes-for-downloads | ||
--clang | ||
--lto=no | ||
--jobs=4 | ||
--static-libpython=no | ||
--standalone | ||
--enable-plugin=anti-bloat | ||
--show-modules | ||
--show-anti-bloat-changes | ||
--follow-stdlib | ||
--follow-imports | ||
--nofollow-import-to="*.tests" | ||
--nofollow-import-to="*.distutils" | ||
--nofollow-import-to="distutils" | ||
--nofollow-import-to="unittest" | ||
--nofollow-import-to="pydoc" | ||
--nofollow-import-to="tkinter" | ||
--nofollow-import-to="test" | ||
--prefer-source-code | ||
--include-package=Xlib | ||
--include-package=filelock | ||
--include-data-files=umu/umu_version.json=umu_version.json | ||
umu | ||
- name: Compress | ||
run: | | ||
find umu.dist -iname "*.so*" -type f -exec llvm-strip --strip-unneeded {} \; | ||
llvm-strip --strip-unneeded umu.dist/umu.bin | ||
python -c "import shutil; shutil.make_archive('umu-launcher', 'zip', 'umu.dist')" | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: umu-launcher.zip | ||
path: umu-launcher.zip | ||
|