-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 986 Bytes
/
build.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
name: Build pybar binary with Pyinstaller
on:
push:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Install Ubuntu dependencies
run: sudo apt install -y libgirepository1.0-dev libgtk-3-dev libatk1.0-dev openssl
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12.7
- name: Install dependencies
run: |
pip install -r requirements.txt
working-directory: ./
- name: Install PyInstaller
run: |
pip install pyinstaller
working-directory: ./
- name: Build binary
run: |
pyinstaller main.py --add-data="style.css:." --onefile --clean --noconfirm -n pybar
- name: Create Artifact
uses: actions/upload-artifact@v4
with:
name: pybar
path: dist/
- name: List files in dist folder
run: ls -R ./dist/