all repos — hex @ 3a0e394a4556db8e0001910fe4469c72391e15d4

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Adding APE support.
h3rald h3rald@h3rald.com
Sat, 07 Dec 2024 19:26:38 +0100
commit

3a0e394a4556db8e0001910fe4469c72391e15d4

parent

72b7caa5f84fbcfe0609c98c0c5602f5c917da94

1 files changed, 34 insertions(+), 0 deletions(-)

jump to
M .github/workflows/ci.yml.github/workflows/ci.yml

@@ -34,3 +34,37 @@ run: make

- name: Test run: make test + + # Install cosmocc + - name: Install cosmocc + run: | + mkdir -p $HOME/cosmocc + cd $HOME/cosmocc + wget -q https://cosmo.zip/pub/cosmocc/cosmocc.zip + unzip -q cosmocc.zip + pwd + ls -l + 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 + make ape + if: matrix.os == 'ubuntu-latest' + + # Run tests with APE binary + - name: Test (APE) + run: | + make test + if: matrix.os == 'ubuntu-latest'