Skip to content

Commit

Permalink
github: try setting up cosmocc-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne committed May 28, 2024
1 parent eea0b22 commit 5de0672
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ jobs:
sudo apt-get update
sudo apt-get install make
- name: Setup cosmocc
run: |
sudo make cosmocc-ci PREFIX=/usr
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"

- name: Build
shell: bash
run: |
make
make -j $(nproc)
- name: Make Llamafile
shell: bash
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@ install: llamafile/zipalign.1 \
.PHONY: check
check: o/$(MODE)/llamafile/check

.PHONY: check
cosmocc-ci: $(COSMOCC)
$(INSTALL) $(COSMOCC)/bin/ape-aarch64.elf $(PREFIX)/bin/ape

include build/deps.mk
include build/tags.mk

0 comments on commit 5de0672

Please sign in to comment.