Skip to content

Commit 8bd171a

Browse files
committed
CI: adds glibc polyfill step for compatibility
1 parent 509d6bf commit 8bd171a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ jobs:
135135
id: ffversion
136136
run: echo "ffversion=$(./fastfetch --version-raw)" >> $GITHUB_OUTPUT
137137

138+
- name: polyfill glibc
139+
run: |
140+
wget https://github.com/CarterLi/polyfill-glibc/releases/download/v0.0.1/polyfill-glibc-${{ matrix.arch }} -O polyfill-glibc
141+
chmod +x polyfill-glibc
142+
strip fastfetch && ./polyfill-glibc fastfetch --target-glibc=2.17
143+
strip flashfetch && ./polyfill-glibc flashfetch --target-glibc=2.17
144+
echo 'set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-polyfilled")' >> CPackConfig.cmake
145+
cpack
146+
138147
- name: upload artifacts
139148
uses: actions/upload-artifact@v4
140149
with:

0 commit comments

Comments
 (0)