Skip to content

Cosmopolitan libc build - #1839

Merged
bnoordhuis merged 3 commits into
quickjs-ng:masterfrom
bnoordhuis:cosmopolitan
Oct 30, 2026
Merged

bnoordhuis merged 3 commits into
quickjs-ng:masterfrom
bnoordhuis:cosmopolitan

Conversation

@bnoordhuis

@bnoordhuis bnoordhuis commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

#438 - completely vibe-coded (edit: last commit was a hand-made labor of love)

bnoordhuis and others added 2 commits October 26, 2026 20:27
Build with cosmocc 4.0.2 and run the test suite (tests.conf, not
test262). Register the APE loader with binfmt_misc so the resulting
binaries run directly on the Linux runner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build qjs and qjsc with cosmocc 4.0.2 and publish them as
qjs-cosmo.com and qjsc-cosmo.com, actually portable executables
that run on Linux, macOS, Windows and the BSDs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bnoordhuis
bnoordhuis force-pushed the cosmopolitan branch 2 times, most recently from 3a3f7d5 to 2a7c2a2 Compare October 30, 2026 12:02
Comment thread .github/workflows/ci.yml
- uses: actions/checkout@v7
- name: setup cosmocc
run: |
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P /tmp

@saghul saghul Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P /tmp
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P $RUNNER_TEMP

- uses: actions/checkout@v7
- name: setup cosmocc
run: |
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P /tmp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P /tmp
wget -nv https://github.com/jart/cosmopolitan/releases/download/4.0.2/cosmocc-4.0.2.zip -P $RUNNER_TEMP

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use /tmp in about a dozen other places. I'll change them all at once in a follow-up PR.

@bnoordhuis
bnoordhuis merged commit cea851c into quickjs-ng:master Oct 30, 2026
130 checks passed
@bnoordhuis
bnoordhuis deleted the cosmopolitan branch October 30, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants