Skip to content

Commit 79d813b

Browse files
committed
Build with newer version of Python
We are getting an issue importing __future__ from annotations in one case and "invalid syntax" in another with `if CC :=`.
1 parent 4b7bca3 commit 79d813b

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/release.yaml

+12-3
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ jobs:
4141
package-lock.json
4242
test/package-lock.json
4343
44+
# node-gyp needs a newer version of Python.
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: "3.12"
48+
4449
- run: SKIP_SUBMODULE_DEPS=1 npm ci
4550

4651
- name: Install development tools
4752
run: |
4853
cd /etc/yum.repos.d/
4954
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
5055
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
51-
yum install -y gcc-c++ make jq rsync python3 libsecret-devel krb5-devel
56+
yum install -y gcc-c++ make jq rsync libsecret-devel krb5-devel
5257
5358
- name: Install nfpm and envsubst
5459
run: |
@@ -138,6 +143,11 @@ jobs:
138143
package-lock.json
139144
test/package-lock.json
140145
146+
# node-gyp needs a newer version of Python.
147+
- uses: actions/setup-python@v5
148+
with:
149+
python-version: "3.12"
150+
141151
- name: Install cross-compiler and system dependencies
142152
run: |
143153
dpkg --add-architecture $TARGET_ARCH
@@ -149,8 +159,7 @@ jobs:
149159
libsecret-1-dev:$TARGET_ARCH \
150160
libkrb5-dev:$TARGET_ARCH \
151161
ca-certificates \
152-
curl wget rsync gettext-base \
153-
python3
162+
curl wget rsync gettext-base
154163
155164
- run: SKIP_SUBMODULE_DEPS=1 npm ci
156165

0 commit comments

Comments
 (0)