diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 83fb3b786..49b5d4b5c 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -623,7 +623,7 @@ jobs: - name: Install build runtime run: | - brew install llvm create-dmg nasm + brew install llvm create-dmg # pkg-config is handled in a separate step, because it may be already installed by `macos-latest`(14.7.1) runner if command -v pkg-config &>/dev/null; then echo "pkg-config is already installed" @@ -631,6 +631,17 @@ jobs: brew install pkg-config fi + - name: Install NASM + run: | + # Install NASM 2.16.x from official release. + # Do NOT use `brew install nasm` which installs NASM 3.x. + # NASM 3.x is a complete rewrite with incompatible CLI options and removed features. + # aom and other multimedia libraries require NASM 2.x for x86/x86_64 assembly. + wget https://www.nasm.us/pub/nasm/releasebuilds/2.16.03/macosx/nasm-2.16.03-macosx.zip + unzip nasm-2.16.03-macosx.zip + sudo cp nasm-2.16.03/nasm /usr/local/bin/nasm + nasm --version + - name: Install flutter uses: subosito/flutter-action@v2 with: