99env :
1010 MIERU_VERSION : v3.34.0
1111 HYSTERIA_VERSION : v2.9.2
12+ MDVPN_REF : android-vpnservice-protect-hook
13+ MDVPN_COMMIT : d481d72d4b86783a87d536c214d2c68cc4e9320e
1214 NAIVE_VERSION : v149.0.7827.114-1
1315permissions :
1416 contents : read
3032 run : git ls-files libcore | xargs cat | sha1sum > libcore_status
3133 - name : LibCore Cache
3234 id : cache
33- uses : actions/cache@v5
35+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3436 with :
3537 path : |
3638 app/libs/libcore.aar
@@ -50,14 +52,14 @@ jobs:
5052 - name : Checkout
5153 uses : actions/checkout@v5
5254 - name : Sidecars Status
53- run : cat buildScript/lib/mieru.sh buildScript/lib/hysteria2.sh buildScript/lib/naive.sh buildScript/init/env.sh buildScript/init/env_ndk.sh | sha1sum > sidecars_status
55+ run : cat buildScript/lib/mieru.sh buildScript/lib/hysteria2.sh buildScript/lib/masterdnsvpn.sh buildScript/lib/ naive.sh buildScript/init/env.sh buildScript/init/env_ndk.sh | sha1sum > sidecars_status
5456 - name : Sidecars Cache
5557 id : cache
56- uses : actions/cache@v5
58+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
5759 with :
5860 path : |
5961 app/executableSo
60- key : ${{ hashFiles('.github/workflows/*', 'sidecars_status') }}-${{ env.MIERU_VERSION }}-${{ env.HYSTERIA_VERSION }}-${{ env.NAIVE_VERSION }}-sidecars-ci
62+ key : ${{ hashFiles('.github/workflows/*', 'sidecars_status') }}-${{ env.MIERU_VERSION }}-${{ env.HYSTERIA_VERSION }}-${{ env.MDVPN_COMMIT }}-${{ env. NAIVE_VERSION }}-sidecars-ci
6163 - name : Install Golang
6264 if : steps.cache.outputs.cache-hit != 'true'
6365 uses : actions/setup-go@v6
6971 - name : Hysteria2 Download
7072 if : steps.cache.outputs.cache-hit != 'true'
7173 run : ./run lib hysteria2
74+ - name : MasterDnsVPN Build
75+ if : steps.cache.outputs.cache-hit != 'true'
76+ run : ./run lib masterdnsvpn
7277 - name : Naive Download
7378 if : steps.cache.outputs.cache-hit != 'true'
7479 run : ./run lib naive
@@ -91,32 +96,32 @@ jobs:
9196 - name : Libcore Status
9297 run : git ls-files libcore | xargs cat | sha1sum > libcore_status
9398 - name : LibCore Cache
94- uses : actions/cache@v5
99+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
95100 with :
96101 path : |
97102 app/libs/libcore.aar
98103 key : ${{ hashFiles('.github/workflows/*', 'golang_status', 'libcore_status') }}-ci
99104 - name : Sidecars Status
100- run : cat buildScript/lib/mieru.sh buildScript/lib/hysteria2.sh buildScript/lib/naive.sh buildScript/init/env.sh buildScript/init/env_ndk.sh | sha1sum > sidecars_status
105+ run : cat buildScript/lib/mieru.sh buildScript/lib/hysteria2.sh buildScript/lib/masterdnsvpn.sh buildScript/lib/ naive.sh buildScript/init/env.sh buildScript/init/env_ndk.sh | sha1sum > sidecars_status
101106 - name : Sidecars Cache
102107 id : sidecars-cache
103- uses : actions/cache@v5
108+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
104109 with :
105110 path : |
106111 app/executableSo
107- key : ${{ hashFiles('.github/workflows/*', 'sidecars_status') }}-${{ env.MIERU_VERSION }}-${{ env.HYSTERIA_VERSION }}-${{ env.NAIVE_VERSION }}-sidecars-ci
112+ key : ${{ hashFiles('.github/workflows/*', 'sidecars_status') }}-${{ env.MIERU_VERSION }}-${{ env.HYSTERIA_VERSION }}-${{ env.MDVPN_COMMIT }}-${{ env. NAIVE_VERSION }}-sidecars-ci
108113 - name : Verify Sidecar Artifacts
109114 run : |
110115 for abi in arm64-v8a armeabi-v7a x86 x86_64; do
111- for so in libmieru.so libhysteria2.so libnaive.so; do
116+ for so in libmieru.so libhysteria2.so libmasterdnsvpn.so libnaive.so; do
112117 if [ ! -f "app/executableSo/$abi/$so" ]; then
113118 echo "Error: missing app/executableSo/$abi/$so (sidecar cache miss)" >&2
114119 exit 1
115120 fi
116121 done
117122 done
118123 - name : Gradle cache
119- uses : actions/cache@v5
124+ uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
120125 with :
121126 path : ~/.gradle
122127 key : gradle-oss-${{ hashFiles('**/*.gradle.kts') }}-ci
@@ -132,8 +137,8 @@ jobs:
132137 APK=$(find app/build/outputs/apk -name '*arm64-v8a*.apk')
133138 APK=$(dirname $APK)
134139 echo "APK=$APK" >> $GITHUB_ENV
135- # - name: Upload Artifacts
136- # uses: actions/upload-artifact@v5
137- # with:
138- # name: APKs
139- # path: ${{ env.APK }}
140+ - name : Upload Artifacts
141+ uses : actions/upload-artifact@v5
142+ with :
143+ name : NekoBox-debug-apks
144+ path : ${{ env.APK }}
0 commit comments