Skip to content

Commit 122c3e9

Browse files
committed
fix(ci): align JNI LTO compiler
- pin both JNI workflows to Ubuntu 24.04 - select GCC 13 for prebuilt trial LTO objects - remove the stale GCC 11 version hint
1 parent ad5b3a1 commit 122c3e9

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/topling-jni-release.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ on:
66

77
jobs:
88
build-and-publish:
9-
runs-on: ubuntu-latest
9+
# Keep the linker compatible with the GCC 13 LTO trial objects.
10+
runs-on: ubuntu-24.04
11+
env:
12+
CC: gcc-13
13+
CXX: g++-13
1014
permissions:
1115
contents: write
1216
packages: write

‎.github/workflows/topling-jni.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ on:
3030
jobs:
3131
build:
3232
# refer https://github.com/actions/runner-images to get the details
33-
runs-on: ubuntu-22.04
33+
# Prebuilt trial objects use GCC 13 LTO bytecode.
34+
runs-on: ubuntu-24.04
3435
env:
35-
GCC_VER: "11.3" # TODO: better get from the 'gcc --version'
36+
CC: gcc-13
37+
CXX: g++-13
3638
GITHUB_TOKEN: ${{ github.token }}
3739
permissions:
3840
contents: read

0 commit comments

Comments
 (0)