diff options
| author | 2026-02-15 09:57:10 -0600 | |
|---|---|---|
| committer | 2026-02-15 09:57:10 -0600 | |
| commit | 5c0bb4b385d7daac3d872ce4c03d6bb13687ceb9 (patch) | |
| tree | 1d85b8acff6374fc40656c3b81fc3b1f4fb6285b | |
| parent | Sort keys when compiling struct and table literals. (diff) | |
Cosmo libc builds were not working.cosmo-fixup
| -rw-r--r-- | .github/cosmo/setup | 8 | ||||
| -rw-r--r-- | .github/workflows/test.yml | 19 |
2 files changed, 23 insertions, 4 deletions
diff --git a/.github/cosmo/setup b/.github/cosmo/setup index 9de92d41..f515e105 100644 --- a/.github/cosmo/setup +++ b/.github/cosmo/setup @@ -1,19 +1,19 @@ #!/bin/sh set -e -sudo apt update +sudo apt-get update sudo apt-get install -y ca-certificates libssl-dev\ - qemu qemu-utils qemu-user-static\ + qemu-utils qemu-user-static\ texinfo groff\ cmake ninja-build bison zip\ pkg-config build-essential autoconf re2c # download cosmocc cd /sc -wget https://github.com/jart/cosmopolitan/releases/download/3.3.3/cosmocc-3.3.3.zip +wget https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip mkdir -p cosmocc cd cosmocc -unzip ../cosmocc-3.3.3.zip +unzip ../cosmocc-4.0.2.zip # register cd /sc/cosmocc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed02f369..823f807c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -136,3 +136,22 @@ jobs: run: docker run --privileged --rm tonistiigi/binfmt --install s390x - name: Build and run on emulated architecture run: docker run --rm -v .:/janet --platform linux/s390x alpine sh -c "apk update && apk add --no-interactive git build-base && cd /janet && make -j3 && make test" + + test-cosmo: + name: Test build for Cosmo + runs-on: ubuntu-latest + steps: + - name: Checkout the repository + uses: actions/checkout@master + - name: create build folder + run: | + sudo mkdir -p /sc + sudo chmod -R 0777 /sc + - name: setup Cosmopolitan Libc + run: bash ./.github/cosmo/setup + - name: Set the version + run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - name: Set the platform + run: echo "platform=cosmo" >> $GITHUB_ENV + - name: build Janet APE binary + run: bash ./.github/cosmo/build |
