Build libaom's x86 SIMD with yasm in CI

The Ubuntu and Homebrew runners now ship NASM 3, which the locked libaom
3.13 assembler probe rejects. libaom prefers yasm; dav1d keeps NASM.
This commit is contained in:
waozi committed 2026-11-05 19:43:30 -03:00
1 parent cc171806f7
commit f2bfeb409d
2 files changed
+10 -9

No files matched your search

+7 -7
View File
@@ -36,8 +36,8 @@ jobs:
run: git checkout -B master
# Every job that builds the AVIF decoder needs Meson and Ninja for dav1d,
# and on x86-64 nasm for dav1d's and libaom's SIMD; arm64 builds assemble
# with the C compiler.
# and on x86-64 nasm for dav1d's SIMD and yasm for libaom's: the locked
# libaom 3.13 rejects nasm 3; arm64 builds assemble with the C compiler.
- name: Set up the locked Ziran, its packages and the build tools
uses: ziranlang/ziran/.github/actions/setup@4c27b5a080a9596f5919ece1651e5a372be2142f
with:
@@ -50,7 +50,7 @@ jobs:
libpango1.0-dev libdrm-dev libgbm-dev libegl-dev libgles-dev libegl-mesa0
libgl1-mesa-dri libx11-dev libxt-dev libxext-dev libfontconfig1-dev libfreetype-dev
libcurl4-openssl-dev fonts-dejavu-core fonts-wqy-zenhei xvfb xdotool x11-apps x11-utils
imagemagick xfwm4 dbus-x11 cmake nasm meson ninja-build libwebpdemux2
imagemagick xfwm4 dbus-x11 cmake nasm yasm meson ninja-build libwebpdemux2
- name: Prepare locked toolchain ref
run: git -C "$ZIRAN_ROOT" checkout -B master
@@ -103,7 +103,7 @@ jobs:
fetch: true
- name: Install the AVIF decoder's dav1d build tools
run: brew install meson ninja $([ "$RUNNER_ARCH" = X64 ] && echo nasm)
run: brew install meson ninja $([ "$RUNNER_ARCH" = X64 ] && echo nasm yasm)
# No GUI launch or screenshot can reach a runner's inherited display.
- name: Build native player and execute the portable VM with CPU pixels
@@ -151,7 +151,7 @@ jobs:
libegl-dev libgles-dev libegl-mesa0 libgl1-mesa-dri imagemagick xclip xdotool
x11-xserver-utils python3-gi python3-pil ffmpeg gir1.2-gtk-3.0 gir1.2-atspi-2.0
libglib2.0-dev libpango1.0-dev at-spi2-core dbus-x11 gstreamer1.0-plugins-base
gstreamer1.0-plugins-good gstreamer1.0-libav cmake nasm meson ninja-build libwebpdemux2
gstreamer1.0-plugins-good gstreamer1.0-libav cmake nasm yasm meson ninja-build libwebpdemux2
# SDL3's GPU renderer needs Vulkan even on a software-only runner.
- name: Install SDL3 software GPU test tools
@@ -284,7 +284,7 @@ jobs:
build-essential python3 python3-pil ripgrep ffmpeg pkg-config libsdl2-dev
libcairo2-dev libglib2.0-dev libpango1.0-dev libfreetype-dev libfontconfig1-dev
gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-libav cmake
nasm meson ninja-build libwebpdemux2
nasm yasm meson ninja-build libwebpdemux2
- name: Prepare locked toolchain ref
run: git -C "$ZIRAN_ROOT" checkout -B master
@@ -333,7 +333,7 @@ jobs:
libpango1.0-dev libdrm-dev libgbm-dev libegl-dev libgles-dev libegl-mesa0
libgl1-mesa-dri libx11-dev libxt-dev libxext-dev libfontconfig1-dev libfreetype-dev
fonts-dejavu-core fonts-wqy-zenhei xvfb xdotool x11-apps x11-utils imagemagick xfwm4
dbus-x11 cmake nasm meson ninja-build libwebpdemux2
dbus-x11 cmake nasm yasm meson ninja-build libwebpdemux2
- name: Prepare locked toolchain ref
run: git -C "$ZIRAN_ROOT" checkout -B master
+3 -2
View File
@@ -291,8 +291,9 @@ bytes. Only the first decoded frame is retained.
`mk/raylib-library.mk` builds `AVIF_A`, `AOM_A` and Linux `AVIF_SO` beside the
existing renderer archives; `AVIF_A` contains dav1d. Building it needs Meson,
Ninja and, on x86, NASM; `ZIRAN_AVIF_TOOLS` can name a directory holding the
avif package's pinned Meson/Ninja. `kryon_android_raylib(raylib, webp, avif, aom)`
Ninja and, on x86, NASM plus YASM, which libaom prefers (the locked libaom 3.13
rejects NASM 3); `ZIRAN_AVIF_TOOLS` can name a directory holding the avif
package's pinned Meson/Ninja. `kryon_android_raylib(raylib, webp, avif, aom)`
links the static codec for each ABI; older scaffolds receive the source paths
through `KRYON_ANDROID_AVIF_DIR`, `KRYON_ANDROID_AOM_DIR` and `KRYON_DAV1D_DIR`
(otherwise dav1d comes from the locked package graph). The Raylib artifact