Skip to content

Commit 78db18e

Browse files
committed
Also export compiler-rt
1 parent 2f86b8d commit 78db18e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/sysroot.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run:
2424
shell: bash
2525
steps:
26-
- name: Extract and compress NDK Sysroot
26+
- name: Extract and compress NDK Sysroot and Compiler-RT
2727
run: |
2828
set -euxo pipefail
2929
export XZ_OPT="-T1 -9"
@@ -34,11 +34,17 @@ jobs:
3434
3535
tar -cJf /tmp/ndk_sysroot.tar.xz -C "$SYSROOT" .
3636
37+
cd "${ANDROID_NDK_HOME:?}"/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/*/lib/linux
38+
find ./ -mindepth 1 -type d -exec sh -c 'echo "INPUT(-lunwind)" > "$1"/libgcc.a' sh {} \;
39+
tar -cJf /tmp/android_compiler-rt.tar.xz -C . .
40+
3741
- name: Create Release
3842
if: startsWith(github.ref, 'refs/tags/')
3943
uses: softprops/action-gh-release@v2
4044
with:
4145
body: 'NDK Sysroot'
4246
draft: true
43-
files: '/tmp/ndk_sysroot.tar.xz'
47+
files: |
48+
/tmp/ndk_sysroot.tar.xz
49+
/tmp/android_compiler-rt.tar.xz
4450
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)