mirror of https://github.com/NekoX-Dev/NekoX.git
Update CI native
This commit is contained in:
parent
c706d2c2c5
commit
8d07f4d1ad
|
@ -25,14 +25,17 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Fetch Status
|
- name: Fetch Status
|
||||||
run: git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
run: |
|
||||||
|
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
||||||
|
git submodule status TMessagesProj/jni/libvpx > libvpx_status
|
||||||
- name: FFmpeg Cache
|
- name: FFmpeg Cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
TMessagesProj/jni/ffmpeg/build
|
TMessagesProj/jni/ffmpeg/build
|
||||||
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
|
TMessagesProj/jni/libvpx/build
|
||||||
|
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
|
||||||
- name: Setup Android SDK Tools
|
- name: Setup Android SDK Tools
|
||||||
uses: android-actions/setup-android@v2
|
uses: android-actions/setup-android@v2
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
@ -45,6 +48,8 @@ jobs:
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get install yasm -y
|
||||||
|
./run init libs libvpx
|
||||||
./run init libs ffmpeg
|
./run init libs ffmpeg
|
||||||
boringssl:
|
boringssl:
|
||||||
name: Native Build (BoringSSL)
|
name: Native Build (BoringSSL)
|
||||||
|
@ -94,6 +99,7 @@ jobs:
|
||||||
- name: Fetch Status
|
- name: Fetch Status
|
||||||
run: |
|
run: |
|
||||||
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
||||||
|
git submodule status TMessagesProj/jni/libvpx > libvpx_status
|
||||||
git submodule status TMessagesProj/jni/boringssl > boringssl_status
|
git submodule status TMessagesProj/jni/boringssl > boringssl_status
|
||||||
- name: Native Cache
|
- name: Native Cache
|
||||||
id: cache
|
id: cache
|
||||||
|
@ -112,7 +118,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
TMessagesProj/jni/ffmpeg/build
|
TMessagesProj/jni/ffmpeg/build
|
||||||
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
|
TMessagesProj/jni/libvpx/build
|
||||||
|
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
|
||||||
- name: BoringSSL Cache
|
- name: BoringSSL Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
@ -134,11 +141,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd TMessagesProj/jni
|
cd TMessagesProj/jni
|
||||||
./patch_boringssl.sh
|
./patch_boringssl.sh
|
||||||
- name: Native Build (libvpx)
|
|
||||||
if: (matrix.flavor == 'x86' || matrix.flavor == 'x86_64') && steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
sudo apt-get install yasm -y
|
|
||||||
./run init libs libvpx
|
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -33,14 +33,17 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Fetch Status
|
- name: Fetch Status
|
||||||
run: git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
run: |
|
||||||
|
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
||||||
|
git submodule status TMessagesProj/jni/libvpx > libvpx_status
|
||||||
- name: FFmpeg Cache
|
- name: FFmpeg Cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
TMessagesProj/jni/ffmpeg/build
|
TMessagesProj/jni/ffmpeg/build
|
||||||
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
|
TMessagesProj/jni/libvpx/build
|
||||||
|
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
|
||||||
- name: Setup Android SDK Tools
|
- name: Setup Android SDK Tools
|
||||||
uses: android-actions/setup-android@v2
|
uses: android-actions/setup-android@v2
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
|
@ -53,6 +56,8 @@ jobs:
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt-get install yasm -y
|
||||||
|
./run init libs libvpx
|
||||||
./run init libs ffmpeg
|
./run init libs ffmpeg
|
||||||
boringssl:
|
boringssl:
|
||||||
name: Native Build (BoringSSL)
|
name: Native Build (BoringSSL)
|
||||||
|
@ -103,14 +108,16 @@ jobs:
|
||||||
- name: Fetch Status
|
- name: Fetch Status
|
||||||
run: |
|
run: |
|
||||||
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
|
||||||
|
git submodule status TMessagesProj/jni/libvpx > libvpx_status
|
||||||
git submodule status TMessagesProj/jni/boringssl > boringssl_status
|
git submodule status TMessagesProj/jni/boringssl > boringssl_status
|
||||||
- name: Native Cache
|
- name: Native Cache
|
||||||
id: cache
|
id: cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
TMessagesProj/src/main/libs
|
TMessagesProj/jni/ffmpeg/build
|
||||||
key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-${{ matrix.flavor }}
|
TMessagesProj/jni/libvpx/build
|
||||||
|
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
|
||||||
- name: Checkout Library
|
- name: Checkout Library
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
@ -143,11 +150,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
cd TMessagesProj/jni
|
cd TMessagesProj/jni
|
||||||
./patch_boringssl.sh
|
./patch_boringssl.sh
|
||||||
- name: Native Build (libvpx)
|
|
||||||
if: (matrix.flavor == 'x86' || matrix.flavor == 'x86_64') && steps.cache.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
sudo apt-get install yasm -y
|
|
||||||
./run init libs libvpx
|
|
||||||
- name: Native Build
|
- name: Native Build
|
||||||
if: steps.cache.outputs.cache-hit != 'true'
|
if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue