1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-02 08:33:04 +00:00

simplify build to use only cosmocc

This commit is contained in:
Gautham
2024-04-21 01:10:06 -05:00
parent eebb4c3ade
commit 983c2e5499
2 changed files with 42 additions and 23 deletions

23
.github/cosmo/setup vendored
View File

@@ -8,21 +8,14 @@ sudo apt-get install -y ca-certificates libssl-dev\
cmake ninja-build bison zip\
pkg-config build-essential autoconf re2c
# clone superconfigure
# download cosmocc
cd /sc
git clone https://github.com/ahgamut/superconfigure --depth=1 --branch=z0.0.39
wget https://github.com/jart/cosmopolitan/releases/download/3.3.3/cosmocc-3.3.3.zip
mkdir -p cosmocc
cd cosmocc
unzip ../cosmocc-3.3.3.zip
# 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
# register
cd /sc/cosmocc
sudo cp ./bin/ape-x86_64.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