File tree Expand file tree Collapse file tree 1 file changed +57
-0
lines changed
Expand file tree Collapse file tree 1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build unicode_filter
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - ' tools/unicode_filter.c'
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Install NDK
17+ run : |
18+ set -e
19+ sudo apt update
20+ sudo apt install -y unzip wget
21+ wget -q https://dl.google.com/android/repository/android-ndk-r26d-linux.zip
22+ unzip -q android-ndk-r26d-linux.zip
23+ ls -lh
24+ ls android-ndk-r26d
25+
26+ - name : Build
27+ run : |
28+ set -e
29+
30+ export NDK=$PWD/android-ndk-r26d
31+ TOOLCHAIN=$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin
32+
33+ echo "Using toolchain at: $TOOLCHAIN"
34+ ls $TOOLCHAIN | head
35+
36+ $TOOLCHAIN/aarch64-linux-android21-clang tools/unicode_filter.c -O2 -s -o unicode_filter_arm64
37+ $TOOLCHAIN/armv7a-linux-androideabi21-clang tools/unicode_filter.c -O2 -s -o unicode_filter_arm
38+ $TOOLCHAIN/x86_64-linux-android21-clang tools/unicode_filter.c -O2 -s -o unicode_filter_x86_64
39+ $TOOLCHAIN/i686-linux-android21-clang tools/unicode_filter.c -O2 -s -o unicode_filter_x86
40+
41+ echo "=== FILE TYPE CHECK ==="
42+ file unicode_filter_arm64
43+ file unicode_filter_arm
44+ file unicode_filter_x86_64
45+ file unicode_filter_x86
46+
47+ echo "=== SIZE CHECK ==="
48+ ls -lh unicode_filter_*
49+
50+ mkdir -p out/bin
51+ mv unicode_filter_* out/bin/
52+
53+ - name : Upload Artifact
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : unicode_filter_bin
57+ path : out/bin/
You can’t perform that action at this time.
0 commit comments