-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.19 KB
/
Copy pathci.yml
File metadata and controls
42 lines (39 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
native:
name: Native build & smoke
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: make
- name: Smoke test
run: make smoke
ape:
name: Cosmopolitan APE build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install unzip
run: sudo apt-get update && sudo apt-get install -y unzip
- name: Build APE
run: make ape
- name: Run APE under Linux
run: |
# Register APE loader so MZ polyglot binaries execute as APE, not WINE
sudo wget -q -O /usr/bin/ape "https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf"
sudo chmod +x /usr/bin/ape
echo ':APE:M::MZqFpD::/usr/bin/ape:' | sudo tee /proc/sys/fs/binfmt_misc/register >/dev/null || true
echo ':APE-jart:M::jartsr::/usr/bin/ape:' | sudo tee /proc/sys/fs/binfmt_misc/register >/dev/null || true
./about.com --version
./about.com -q
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: about-ape
path: about.com