mirror of
https://github.com/dyhkwong/Exclave.git
synced 2026-06-09 10:32:22 +08:00
Split naive build
This commit is contained in:
64
.github/workflows/debug.yml
vendored
64
.github/workflows/debug.yml
vendored
@@ -138,9 +138,12 @@ jobs:
|
||||
echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
|
||||
./run libs trojan_go
|
||||
./gradlew trojan-go-plugin:assembleDebug
|
||||
naive:
|
||||
name: Native Build (NaïveProxy)
|
||||
naive_libs:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
arch: [ armeabi-v7a, arm64-v8a, x86, x86_64 ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
@@ -151,8 +154,8 @@ jobs:
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
naive-plugin/src/main/jniLibs
|
||||
key: ${{ hashFiles('bin/libs/naive.sh', 'naive_status') }}
|
||||
naive-plugin/src/main/jniLibs/${{ matrix.arch }}
|
||||
key: naive-${{ matrix.arch }}-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
|
||||
- name: Gradle cache
|
||||
uses: actions/cache@v2
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
@@ -165,7 +168,58 @@ jobs:
|
||||
echo "sdk.dir=${ANDROID_HOME}" > local.properties
|
||||
echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
|
||||
./run init action naive
|
||||
./run libs naive
|
||||
./run libs naive ${{ matrix.arch }}
|
||||
naive:
|
||||
needs: naive_libs
|
||||
name: Native Build (NaïveProxy)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Fetch Status
|
||||
run: git submodule status 'naive-plugin/*' > naive_status
|
||||
- name: Naive Cache (armeabi-v7a)
|
||||
id: cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
naive-plugin/src/main/jniLibs/armeabi-v7a
|
||||
key: naive-armeabi-v7a-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
|
||||
- name: Naive Cache (arm64-v8a)
|
||||
id: cache1
|
||||
if: steps.cache.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
naive-plugin/src/main/jniLibs/arm64-v8a
|
||||
key: naive-arm64-v8a-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
|
||||
- name: Naive Cache (x86)
|
||||
id: cache2
|
||||
if: steps.cache1.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
naive-plugin/src/main/jniLibs/x86
|
||||
key: naive-x86-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
|
||||
- name: Naive Cache (x86_64)
|
||||
id: cache3
|
||||
if: steps.cache2.outputs.cache-hit != 'true'
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
naive-plugin/src/main/jniLibs/x86_64
|
||||
key: naive-x86_64-${{ hashFiles('bin/libs/naive/*', 'naive_status') }}
|
||||
- name: Gradle cache
|
||||
uses: actions/cache@v2
|
||||
if: steps.cache3.outputs.cache-hit != 'true'
|
||||
with:
|
||||
path: ~/.gradle
|
||||
key: native-${{ hashFiles('**/*.gradle') }}
|
||||
- name: Native Build
|
||||
if: steps.cache3.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
echo "sdk.dir=${ANDROID_HOME}" > local.properties
|
||||
echo "ndk.dir=${ANDROID_HOME}/ndk/21.4.7075529" >> local.properties
|
||||
./gradlew naive-plugin:assembleDebug
|
||||
shadowsocks:
|
||||
name: Native Build (Shadowsocks)
|
||||
|
||||
Reference in New Issue
Block a user