3636 - name : Native Build
3737 if : steps.cache.outputs.cache-hit != 'true'
3838 run : ./run lib core
39+ - name : Upload LibCore
40+ uses : actions/upload-artifact@v5
41+ with :
42+ name : libcore-aar-preview
43+ path : app/libs/libcore.aar
44+ retention-days : 1
45+ if-no-files-found : error
3946 sidecars :
4047 name : Native Build (Sidecars)
4148 runs-on : namespace-profile-nekoyay
6875 - name : Naive Download
6976 if : steps.cache.outputs.cache-hit != 'true'
7077 run : ./run lib naive
78+ - name : Upload Sidecars
79+ uses : actions/upload-artifact@v5
80+ with :
81+ name : sidecars-so-preview
82+ path : app/executableSo
83+ retention-days : 1
84+ if-no-files-found : error
7185 build :
7286 name : Build OSS APK
7387 runs-on : namespace-profile-nekoyay
@@ -77,31 +91,22 @@ jobs:
7791 steps :
7892 - name : Checkout
7993 uses : actions/checkout@v5
80- - name : Golang Status
81- run : find buildScript libcore/*.sh | xargs cat | sha1sum > golang_status
82- - name : Libcore Status
83- run : git ls-files libcore | xargs cat | sha1sum > libcore_status
84- - name : LibCore Cache
85- uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
94+ - name : Download LibCore
95+ uses : actions/download-artifact@v5
8696 with :
87- path : |
88- app/libs/libcore.aar
89- key : ${{ hashFiles('.github/workflows/*', 'golang_status', 'libcore_status') }}
90- - name : Sidecars Status
91- 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
92- - name : Sidecars Cache
93- id : sidecars-cache
94- uses : actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
97+ name : libcore-aar-preview
98+ path : app/libs
99+ - name : Download Sidecars
100+ uses : actions/download-artifact@v5
95101 with :
96- path : |
97- app/executableSo
98- key : ${{ hashFiles('.github/workflows/*', 'sidecars_status') }}-${{ env.MIERU_VERSION }}-${{ env.HYSTERIA_VERSION }}-${{ env.MDVPN_COMMIT }}-${{ env.NAIVE_VERSION }}-sidecars
102+ name : sidecars-so-preview
103+ path : app/executableSo
99104 - name : Verify Sidecar Artifacts
100105 run : |
101106 for abi in arm64-v8a armeabi-v7a x86 x86_64; do
102107 for so in libmieru.so libhysteria2.so libmasterdnsvpn.so libnaive.so; do
103108 if [ ! -f "app/executableSo/$abi/$so" ]; then
104- echo "Error: missing app/executableSo/$abi/$so (sidecar cache miss )" >&2
109+ echo "Error: missing app/executableSo/$abi/$so (sidecar artifact missing )" >&2
105110 exit 1
106111 fi
107112 done
0 commit comments