-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (32 loc) · 1.06 KB
/
Copy pathbuild-avif-binaries.yml
File metadata and controls
38 lines (32 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build AVIF binaries
on:
workflow_dispatch: # Allows manual triggering
jobs:
build-arm64:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential nasm cmake ninja-build libjpeg-dev libpng-dev libtiff-dev libwebp-dev libaom-dev libyuv-dev zlib1g-dev
- name: Build libavif binaries
run: |
cd libavif
mkdir -p build
cd build
cmake -DBUILD_SHARED_LIBS=OFF -DCONFIG_PIC=1 -DCMAKE_BUILD_TYPE=Release -DAVIF_CODEC_AOM=LOCAL -DAVIF_LIBYUV=LOCAL -DAVIF_BUILD_APPS=ON -G Ninja ..
ninja
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: c-native-artifact
path: |
libavif/build/avifenc
libavif/build/avifdec
if-no-files-found: error
# Retain artifacts for 1 day
retention-days: 1