Skip to content

Commit a505d0a

Browse files
committed
fix: update build workflow for GitHub Actions
- Use system site-packages to access system PyGObject - Add missing cairo and pkg-config dependencies - Simplify Nuitka options with follow-imports - Only install Nuitka and build deps in virtualenv
1 parent ca56415 commit a505d0a

2 files changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ jobs:
5757
sudo apt-get update
5858
sudo apt-get install -y python3-venv python3-dev python3-gi python3-gi-cairo \
5959
gir1.2-gtk-3.0 libgirepository1.0-dev build-essential \
60-
libssl-dev zlib1g-dev patchelf
60+
libssl-dev zlib1g-dev patchelf libcairo2-dev pkg-config
6161
6262
- name: Setup virtualenv
6363
run: |
64-
python3 -m venv venv
64+
python3 -m venv --system-site-packages venv
6565
source venv/bin/activate
6666
pip install --upgrade pip
67-
pip install -r requirements.txt
67+
pip install Nuitka==2.6.9 ordered-set==4.1.0 zstandard==0.23.0
6868
6969
- name: Build with Nuitka
7070
run: |

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,8 @@ NUITKA_OPTS := \
2727
--output-dir=$(BUILD_DIR) \
2828
--remove-output \
2929
--include-package=$(PACKAGE_DIR) \
30-
--include-package=gi \
31-
--include-module=gi._gi \
32-
--include-module=gi._propertyhelper \
33-
--include-module=gi._constants \
34-
--include-module=gi._signalhelper \
35-
--include-module=gi._enum \
36-
--include-module=gi._error \
37-
--include-module=asyncio
30+
--follow-imports \
31+
--nofollow-import-to=*.tests
3832

3933
.DEFAULT_GOAL := help
4034

0 commit comments

Comments
 (0)