Skip to content

Commit 63a225c

Browse files
committed
ci: update build.yml and codeql.yml
1 parent d4ff316 commit 63a225c

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,20 @@ jobs:
2525

2626
- name: Install liboqs dependencies
2727
run: sudo apt-get update && sudo apt-get install -y astyle cmake gcc ninja-build libssl-dev python3-pytest python3-pytest-xdist unzip xsltproc doxygen graphviz python3-yaml valgrind
28+
29+
- name: Set up Go
30+
uses: actions/setup-go@v3
31+
with:
32+
go-version: 1.19
33+
34+
- name: Install Gomobile
35+
run: |
36+
go install golang.org/x/mobile/cmd/gomobile@latest
37+
go install golang.org/x/mobile/cmd/gobind@latest
38+
gomobile init
39+
40+
- name: Build V2Ray
41+
run: ./v2ray/build.sh
2842

2943
- name: Set up JDK 17
3044
uses: actions/setup-java@v3

.github/workflows/codeql.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ jobs:
3535

3636
- name: Checkout submodules
3737
run: git submodule update --init --recursive
38+
39+
- name: Set up Go
40+
uses: actions/setup-go@v3
41+
with:
42+
go-version: 1.19
43+
44+
- name: Install Gomobile
45+
run: |
46+
go install golang.org/x/mobile/cmd/gomobile@latest
47+
go install golang.org/x/mobile/cmd/gobind@latest
48+
gomobile init
49+
50+
- name: Build V2Ray
51+
run: ./v2ray/build.sh
3852

3953
- name: Set up JDK 17
4054
uses: actions/setup-java@v3

v2ray/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ go get golang.org/x/mobile/cmd/gomobile
1616
echo "=> Build Android library.."
1717
OUT_AAR=../libs/V2RayControl.aar
1818
gomobile init &&
19-
gomobile bind -trimpath -ldflags "-s -w" -target=android -o ${OUT_AAR}
20-
echo "=> Android build completed (out: ${OUT_AAR})"
19+
gomobile bind -trimpath -ldflags "-s -w" -target=android -androidapi 21 -o ${OUT_AAR}
20+
# echo "=> Android build completed (out: ${OUT_AAR})"

0 commit comments

Comments
 (0)