1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 21:27:42 +00:00

simplify janet APE build

This commit is contained in:
Gautham
2024-04-20 22:09:10 -05:00
parent 4ed7db4f91
commit bf680fb5d3
4 changed files with 70 additions and 17 deletions

28
.github/cosmo/setup vendored Normal file
View File

@@ -0,0 +1,28 @@
#!/bin/sh
set -e
sudo apt update
sudo apt-get install -y ca-certificates libssl-dev\
qemu qemu-utils qemu-user-static\
texinfo groff\
cmake ninja-build bison zip\
pkg-config build-essential autoconf re2c
# clone superconfigure
cd /sc
git clone https://github.com/ahgamut/superconfigure --depth=1 --branch=z0.0.39
# the zip folder
sudo mkdir -p /zip
sudo chmod -R 0777 /zip
# clone cosmo
cd /sc/superconfigure
git clone https://github.com/jart/cosmopolitan --depth=1 --branch=3.3.3 cosmopolitan
sudo cp cosmopolitan/build/bootstrap/ape.elf /usr/bin/ape
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
# ls /proc/sys/fs/binfmt_misc/
# build cosmo
cd /sc/superconfigure
./.github/scripts/cosmo