-
Notifications
You must be signed in to change notification settings - Fork 9
84 lines (82 loc) · 3.18 KB
/
bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Bundle
on: workflow_dispatch
jobs:
bundle:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r dev_requirements.txt
- name: Bundle (MacOS)
run: |
python -m nuitka --standalone --include-data-dir=source=source --noinclude-data-files='*.json' --remove-output --assume-yes-for-downloads --macos-create-app-bundle --macos-app-icon=source/resources/icon.png microcosm.py
ditto -c -k --sequesterRsrc --keepParent microcosm.app microcosm-osx.zip
if: matrix.os == 'macos-latest'
- name: Bundle (Ubuntu)
run: |
python -m nuitka --onefile --standalone --include-data-dir=source=source --noinclude-data-files='*.json' --remove-output --assume-yes-for-downloads --linux-icon=source/resources/icon.png -o microcosm microcosm.py
chmod 744 microcosm
tar -czvf microcosm.tar.gz microcosm
if: matrix.os == 'ubuntu-latest'
- name: Bundle (Windows)
run: |
python -m nuitka --onefile --standalone --include-data-dir=source=source --noinclude-data-files='*.json' --remove-output --assume-yes-for-downloads --mingw64 --windows-icon-from-ico=source/resources/icon.png microcosm.py
if: matrix.os == 'windows-latest'
- name: Upload artifact (MacOS)
uses: actions/upload-artifact@v3
with:
name: microcosm-osx
path: microcosm-osx.zip
if: matrix.os == 'macos-latest'
- name: Upload artifact (Ubuntu)
uses: actions/upload-artifact@v3
with:
name: microcosm-ubuntu-x86
path: microcosm.tar.gz
if: matrix.os == 'ubuntu-latest'
- name: Upload artifact (Windows)
uses: actions/upload-artifact@v3
with:
name: microcosm-windows
path: microcosm.exe
if: matrix.os == 'windows-latest'
bundle-fedora:
runs-on: ubuntu-latest
container: fedora
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install system packages
run: |
dnf update -y
dnf install -y patchelf gcc-c++
- name: Install requirements
run: |
python -m pip install --upgrade pip
python -m pip install -r dev_requirements.txt
- name: Bundle
run: |
python -m nuitka --onefile --standalone --include-data-dir=source=source --noinclude-data-files='*.json' --remove-output --assume-yes-for-downloads --linux-icon=source/resources/icon.png -o microcosm microcosm.py
chmod 744 microcosm
tar -czvf microcosm.tar.gz microcosm
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: microcosm-fedora-x86
path: microcosm.tar.gz