Fixes.
h3rald h3rald@h3rald.com
Thu, 05 Dec 2024 10:24:31 +0100
1 files changed,
11 insertions(+),
1 deletions(-)
jump to
M
.github/workflows/release.yml
→
.github/workflows/release.yml
@@ -83,11 +83,21 @@ - name: Create artifact (Linux - WASM)
run: zip hex_${{steps.current-release.outputs.tag_name}}_wasm.zip hex.wasm hex.js if: matrix.os == 'ubuntu-latest' + # Add cosmocc to PATH + see https://redbean.dev/#install + - name: Add cosmocc to PATH + run: | + echo $HOME/cosmocc/bin >> $GITHUB_PATH + sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf + sudo chmod +x /usr/bin/ape + sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" + sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register" + if: matrix.os == 'ubuntu-latest' + # Generate APE binary - name: Generate APE binary run: | mv hex hex.native - $HOME/cosmocc/bin/cosmocc -Wall -Wextra -g -o hex + make ape if: matrix.os == 'ubuntu-latest' # Package the resulting APE binary