Skip to content

Commit

Permalink
test cache
Browse files Browse the repository at this point in the history
  • Loading branch information
UjuiUjuMandan committed Dec 21, 2024
1 parent 059f874 commit f032a5c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,15 @@ jobs:
run: |
mkdir ${{ github.workspace }}/build
- name: Restore cached libtun2socks
id: cache-libtun2socks-restore
uses: actions/cache/restore@v4
with:
path: ${{ github.workspace }}/build/AndroidLibV2rayLite/libs
key: libtun2socks-${{ runner.os }}-${{ hashFiles('build/AndroidLibV2rayLite/.gitmodules') }}-${{ hashFiles('build/AndroidLibV2rayLite/badvpn/.git/HEAD') }}-${{ hashFiles('build/AndroidLibV2rayLite/libancillary/.git/HEAD') }}

- name: Build libtun2socks
if: steps.cache-libtun2socks-restore.outputs.cache-hit != 'true'
run: |
cd ${{ github.workspace }}/build
git clone --depth=1 -b master https://github.com/2dust/AndroidLibV2rayLite.git
Expand All @@ -62,6 +70,17 @@ jobs:
env:
NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}

- name: Save libtun2socks
if: steps.cache-libtun2socks.outputs.cache-hit != 'true'
uses: actions/cache-save@v4
with:
path: ${{ github.workspace }}/build/AndroidLibV2rayLite/libs
key: libtun2socks-${{ runner.os }}-${{ hashFiles('build/AndroidLibV2rayLite/.gitmodules') }}-${{ hashFiles('build/AndroidLibV2rayLite/badvpn/.git/HEAD') }}-${{ hashFiles('build/AndroidLibV2rayLite/libancillary/.git/HEAD') }}

- name: Copy libtun2socks
run: |
cp -r ${{ github.workspace }}/build/AndroidLibV2rayLite/libs/* ${{ github.workspace }}/V2rayNG/app/libs/
- name: Build libv2ray
run: |
cd ${{ github.workspace }}/build
Expand Down

0 comments on commit f032a5c

Please sign in to comment.