Skip to content

Commit 87d37e9

Browse files
committed
fix(ci): add GTK4 system deps, pip install ., and contents:write to packaging workflows
- Merged GTK4/Cairo/gobject-introspection system dependencies with packaging tools so pycairo and PyGObject can build from source - Added pip install . to install all pyproject.toml runtime dependencies before running the build scripts - Added permissions: contents: write for softprops/action-gh-release when generate_release_notes is true
1 parent 8662774 commit 87d37e9

2 files changed

Lines changed: 35 additions & 19 deletions

File tree

.github/workflows/build-deb.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,34 @@ jobs:
1717
name: Build DEB Package
1818
runs-on: ubuntu-latest
1919
permissions:
20-
contents: write
20+
contents: write
21+
2122
steps:
2223
- name: Checkout code
2324
uses: actions/checkout@v4
2425

25-
- name: Install DEB build tools
26+
- name: Install system dependencies (GTK4 + build tools)
2627
run: |
2728
sudo apt-get update
2829
sudo apt-get install -y \
30+
libgtk-4-dev \
31+
libgtksourceview-5-dev \
32+
libcairo2-dev \
33+
libgirepository-2.0-dev \
34+
gobject-introspection \
35+
gir1.2-gtk-4.0 \
36+
gir1.2-gtksource-5 \
37+
python3-dev \
38+
python3-gi \
39+
python3-gi-cairo \
40+
libffi-dev \
41+
libssl-dev \
42+
pkg-config \
2943
build-essential \
3044
debhelper \
3145
devscripts \
3246
dpkg-dev \
33-
fakeroot \
34-
python3 \
35-
python3-pip \
36-
python3-setuptools \
37-
python3-dev
47+
fakeroot
3848
3949
- name: Set up Python
4050
uses: actions/setup-python@v5
@@ -45,9 +55,7 @@ jobs:
4555
run: |
4656
pip install --upgrade pip
4757
pip install build
48-
49-
- name: Install project dependencies
50-
run: pip install .
58+
pip install .
5159
5260
- name: Build DEB
5361
run: |

.github/workflows/build-rpm.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,31 @@ jobs:
1818
runs-on: ubuntu-latest
1919
permissions:
2020
contents: write
21+
2122
steps:
2223
- name: Checkout code
2324
uses: actions/checkout@v4
2425

25-
- name: Install RPM build tools
26+
- name: Install system dependencies (GTK4 + build tools)
2627
run: |
2728
sudo apt-get update
2829
sudo apt-get install -y \
30+
libgtk-4-dev \
31+
libgtksourceview-5-dev \
32+
libcairo2-dev \
33+
libgirepository-2.0-dev \
34+
gobject-introspection \
35+
gir1.2-gtk-4.0 \
36+
gir1.2-gtksource-5 \
37+
python3-dev \
38+
python3-gi \
39+
python3-gi-cairo \
40+
libffi-dev \
41+
libssl-dev \
42+
pkg-config \
2943
rpm \
3044
rpm2cpio \
31-
cpio \
32-
python3 \
33-
python3-pip \
34-
python3-setuptools \
35-
python3-dev
45+
cpio
3646
3747
- name: Set up Python
3848
uses: actions/setup-python@v5
@@ -43,9 +53,7 @@ jobs:
4353
run: |
4454
pip install --upgrade pip
4555
pip install build
46-
47-
- name: Install project dependencies
48-
run: pip install .
56+
pip install .
4957
5058
- name: Build RPM
5159
run: |

0 commit comments

Comments
 (0)