This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (49 loc) · 1.58 KB
/
linux_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
43
44
45
46
47
48
49
50
51
52
53
name: Linux Build Executable
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Qt and Xcb dependencies
run: |
# Need dependencies to work
# https://github.com/ActivityWatch/activitywatch/pull/604
# Big thanks for documenting your steps and problem
sudo apt-get update
sudo apt-get install -y qt5-default libfontconfig1 libxcb1 breeze
- name: Install and configure dependencies
run: |
sudo apt-get install python3-pyqt5 python3-requests python3-lxml
python -m pip install --upgrade pip
sudo pip install pyinstaller
- name: Build with pyinstaller
run: |
pyinstaller app.py -n omnic_rewards_Linux --onefile
- name: Export executable build file
uses: actions/[email protected]
with:
name: linux-build
path: dist/
- name: Upload Release Asset
id: upload-release-asset
if: github.event_name == 'release'
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: dist/omnic_rewards_Linux
asset_name: omnic_rewards_Linux
asset_content_type: application/octet-stream