Skip to content

Commit 0c8b44c

Browse files
committed
Fix GitHub Actions workflows failing due to using glibc 2.17
PR #23 (#0774bd6) added a container setup to build with glibc 2.17. Unfortunately, GitHub recently started forcing actions to run on Node 20 instead of Node 16 (https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/). Node 20 does not work with glibc 2.17 and using it results in the build failing. This commit temporarily fixes build issues by using the environment variable mentioned on the aforementioned page. We will need a longer term solution soon however, as once download-artifact@v3 and upload-artifact@v3 are deprecated, we will be forced to use v4 versions which require Node 20.
1 parent 0774bd6 commit 0c8b44c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/pushaction.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Compile and deploy snapshot artifacts
33
on: [push, pull_request] # Don't worry, the actual deployment is guarded with an "if" and only done on push to master
44
env:
55
GRADLE_USER_HOME: .gradle
6+
# Needed in order to use Node 16. Node 20 does not work with glibc 2.17
7+
# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
8+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
69

710
jobs:
811
macos:

.github/workflows/releaseaction.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66

77
env:
88
GRADLE_USER_HOME: .gradle
9+
# Needed in order to use Node 16. Node 20 does not work with glibc 2.17
10+
# See https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
11+
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
912

1013
jobs:
1114
macos:

0 commit comments

Comments
 (0)