Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

release.yml: the Windows job installs nasm when the image lacks it (Chocolatey, else NASM's zip). rav1d's build script runs nasm; GitHub's Windows image has it and Namespace's doesn't, so rc3's dry run on Namespace stopped there after 3 minutes. An inventory of Namespace's windows-2022 image found nasm the only missing tool the build uses

shinyobjectzfac78b331b6c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 56bb03ae..3a70c058 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -244,6 +244,21 @@ jobs:
- name: Toolchain (rust-toolchain.toml's pin)
if: env.RAEA_PROMOTED_FROM == ''
run: rustup show active-toolchain || rustup toolchain install
+ # nasm, which rav1d's build script runs: GitHub's Windows image has it, Namespace's doesn't (rc3's dry run there
+ # stopped at "Unable to run nasm: program not found"). Chocolatey when the image has it, else NASM's own zip
+ - name: nasm
+ if: env.RAEA_PROMOTED_FROM == ''
+ run: |
+ if command -v nasm >/dev/null; then nasm -v; exit 0; fi
+ if command -v choco >/dev/null; then
+ choco install nasm -y --no-progress >/dev/null
+ echo "C:\\Program Files\\NASM" >> "$GITHUB_PATH"
+ else
+ v=2.16.03
+ curl -fsSL --retry 3 -o "$RUNNER_TEMP/nasm.zip" "https://www.nasm.us/pub/nasm/releasebuilds/$v/win64/nasm-$v-win64.zip"
+ unzip -q "$RUNNER_TEMP/nasm.zip" -d "$RUNNER_TEMP"
+ echo "$RUNNER_TEMP/nasm-$v" >> "$GITHUB_PATH"
+ fi
# jq for Windows ends -r lines with CRLF, so tools/bevy-plugins.sh read "ahoy\r" and lost its Bevy 0.20 block
# (feature `ahoy` not found, 11-04); -b writes LF
- name: jq that writes LF