Skip to content

Commit edb375d

Browse files
committed
Update build checker action.
1 parent f1205da commit edb375d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626
mkdir android_ndk
2727
wget --no-verbose ${ANDROID_NDK_URL} -O android_ndk/ndk.zip
2828
unzip android_ndk/ndk.zip -d android_ndk
29-
CGO_ENABLED=1 GOOS=android GOARCH=386 CC="$(realpath "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang")" go build -o AWGProxy_386 -v ./cmd/awgproxy
29+
mv "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)" android_ndk/extracted
30+
CGO_ENABLED=1 GOOS=android GOARCH=386 CC="$(realpath "android_ndk/extracted/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android21-clang")" go build -o AWGProxy_386 -v ./cmd/awgproxy
3031
mkdir release_android_386
3132
mv AWGProxy_386 awgproxy
3233
cp awgproxy release_android_386/awgproxy
@@ -49,7 +50,8 @@ jobs:
4950
mkdir android_ndk
5051
wget --no-verbose ${ANDROID_NDK_URL} -O android_ndk/ndk.zip
5152
unzip android_ndk/ndk.zip -d android_ndk
52-
CGO_ENABLED=1 GOOS=android GOARCH=amd64 CC="$(realpath "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang")" go build -o AWGProxy_amd64 -v ./cmd/awgproxy
53+
mv "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)" android_ndk/extracted
54+
CGO_ENABLED=1 GOOS=android GOARCH=amd64 CC="$(realpath "android_ndk/extracted/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang")" go build -o AWGProxy_amd64 -v ./cmd/awgproxy
5355
mkdir release_android_amd64
5456
mv AWGProxy_amd64 awgproxy
5557
cp awgproxy release_android_amd64/awgproxy
@@ -72,7 +74,8 @@ jobs:
7274
mkdir android_ndk
7375
wget --no-verbose ${ANDROID_NDK_URL} -O android_ndk/ndk.zip
7476
unzip android_ndk/ndk.zip -d android_ndk
75-
CGO_ENABLED=1 GOOS=android GOARCH=arm CC="$(realpath "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang")" go build -o AWGProxy_arm -v ./cmd/awgproxy
77+
mv "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)" android_ndk/extracted
78+
CGO_ENABLED=1 GOOS=android GOARCH=arm CC="$(realpath "android_ndk/extracted/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang")" go build -o AWGProxy_arm -v ./cmd/awgproxy
7679
mkdir release_android_arm
7780
mv AWGProxy_arm awgproxy
7881
cp awgproxy release_android_arm/awgproxy
@@ -95,7 +98,8 @@ jobs:
9598
mkdir android_ndk
9699
wget --no-verbose ${ANDROID_NDK_URL} -O android_ndk/ndk.zip
97100
unzip android_ndk/ndk.zip -d android_ndk
98-
CGO_ENABLED=1 GOOS=android GOARCH=arm64 CC="$(realpath "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang")" go build -o AWGProxy_arm64 -v ./cmd/awgproxy
101+
mv "android_ndk/$(ls -1 -d android_ndk/*/ | cut -f 2 -d '/' | head -1)" android_ndk/extracted
102+
CGO_ENABLED=1 GOOS=android GOARCH=arm64 CC="$(realpath "android_ndk/extracted/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang")" go build -o AWGProxy_arm64 -v ./cmd/awgproxy
99103
mkdir release_android_arm64
100104
mv AWGProxy_arm64 awgproxy
101105
cp awgproxy release_android_arm64/awgproxy

0 commit comments

Comments
 (0)