add CI build for ugoira feature

This commit is contained in:
2022-03-19 18:04:26 +08:00
parent 0ddcd7d533
commit 44208c3ff2
5 changed files with 70 additions and 3 deletions

View File

@@ -54,3 +54,38 @@ jobs:
export CMAKE_PREFIX_PATH=`pwd`/clib
export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/clib/lib"
cargo test --features exif --verbose -- --show-output || exit 1
build-ugoira:
runs-on: ubuntu-latest
steps:
- name: Check Out
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- name: Get cache key
id: cache_key
run: |
cd scripts
python3 get_cache_key.py libzip x264 ffmpeg || exit 1
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: clib/
key: ${{ runner.os }}-${{ steps.cache_key.outputs.cache_key }}
- name: Build thirdparty library
if: steps.cache.outputs.cache-hit != 'true'
run: |
cp scripts/build_*.sh -v ./ || exit 1
./build_libzip.sh || exit 1
./build_x264.sh || exit 1
./build_ffmpeg.sh || exit 1
- name: Build
run: |
export CMAKE_PREFIX_PATH=`pwd`/clib
cargo build --features ugoira -vv || exit 1
- name: Test
run: |
export CMAKE_PREFIX_PATH=`pwd`/clib
export "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/clib/lib"
cargo test --features ugoira --verbose -- --show-output || exit 1