Skip to content

Commit 52bc479

Browse files
committed
try add gitlab workflow
1 parent 6342ebe commit 52bc479

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build AVIF binaries
2+
3+
4+
on:
5+
workflow_dispatch: # Allows manual triggering
6+
7+
jobs:
8+
build-amd64:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y build-essential nasm cmake
18+
19+
- name: Build libavif binaries
20+
run: |
21+
cd libavif
22+
mkdir -p build
23+
cd build
24+
cmake -DAVIF_CODEC_AOM=LOCAL -DAVIF_LIBYUV=LOCAL -DAVIF_BUILD_APPS=ON ..
25+
make -j$(nproc)
26+
27+
- name: Upload artifact
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: c-native-artifact
31+
path: |
32+
libavif/build/avifenc
33+
libavif/build/avifdec
34+
if-no-files-found: error
35+
# Retain artifacts for 1 day
36+
retention-days: 1
37+

0 commit comments

Comments
 (0)