添加 .gitea/workflows/debug.yml
Some checks failed
Debug Build / Native Build (FFmpeg) (push) Failing after 6s

This commit is contained in:
xtaodada 2024-06-02 14:02:26 +00:00
parent ea0606faf2
commit 6f2aad447e

View File

@ -0,0 +1,40 @@
name: "Debug Build"
# Controls when the action will run.
on:
push:
branches:
- main
jobs:
ffmpeg:
name: Native Build (FFmpeg)
runs-on: ndk21
steps:
- name: Checkout
uses: actions/checkout@v4
repository: 'TeamPGM/Nagram'
- name: Fetch Status
run: |
sed -i 's/\/\///g' settings.gradle
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
git submodule status TMessagesProj/jni/libvpx > libvpx_status
- name: FFmpeg Cache
id: cache
uses: actions/cache@v4
with:
path: |
TMessagesProj/jni/ffmpeg/build
TMessagesProj/jni/libvpx/build
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }}
- name: Install NDK
if: steps.cache.outputs.cache-hit != 'true'
run: |
echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
echo "ndk.dir=${ANDROID_SDK_ROOT}/ndk/21.4.7075529" >> local.properties
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install yasm -y
./run init libs libvpx
./run init libs ffmpeg