-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (81 loc) · 3.19 KB
/
Copy pathci.yml
File metadata and controls
86 lines (81 loc) · 3.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: CI
# Three gates on every push/PR:
# build - cross-compile with bebbo amiga-gcc (docker), fail on any
# compiler warning, and enforce the no-utility.library link
# check (the Kickstart 1.3 regression guard: the default
# libnix wires even 32-bit mul/div through utility.library,
# which does not exist on 1.3 -- see src/soft64.c).
# docs-build - strict MkDocs build of the user-docs site, so a broken
# page or dead link cannot reach a release publish.
# smoke - boot Copperline's bundled AROS ROM (no Kickstart image,
# so no licensed ROM in CI) with a scratch victim HDF on
# the LIDE board and run devsoak's 30-second smoke profile
# against lide.device; ci/smoke.sh maps the guest's
# "devsoak: RESULT" verdict line to the job's exit code.
# Copperline comes from its GitHub release AppImage,
# pinned below and extracted (no FUSE on runners).
on:
push:
branches: [main]
pull_request:
jobs:
build:
name: amiga-gcc build + link hygiene
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Build (fails on any warning)
run: |
make 2>&1 | tee build.log
test -f devsoak
! grep -E 'warning|error' build.log
- name: No utility.library reference (KS1.3 guard)
run: |
docker run --rm -v "$PWD":/work -w /work \
stefanreinauer/amiga-gcc:gcc-v16.1 \
sh -c 'm68k-amigaos-nm devsoak | grep -i utility; exit 0' \
| tee nm-utility.log
! test -s nm-utility.log
- uses: actions/upload-artifact@v7
with:
name: devsoak
path: devsoak
docs-build:
name: Docs site (strict)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install docs toolchain
run: pip install -r tools/docs-requirements.txt
- name: Strict MkDocs build
run: mkdocs build --strict
smoke:
name: AROS-boot smoke (lide.device)
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
name: devsoak
- name: Install Copperline (release AppImage) and xdftool
env:
COPPERLINE_VERSION: "0.18.0"
run: |
curl -fsSL -o copperline.AppImage \
"https://github.com/CopperlineHQ/Copperline/releases/download/v${COPPERLINE_VERSION}/Copperline-${COPPERLINE_VERSION}-x86_64.AppImage"
chmod +x copperline.AppImage
# extract instead of running: AppImage mounting needs FUSE,
# which GitHub runners don't provide
./copperline.AppImage --appimage-extract >/dev/null
sudo mv squashfs-root /opt/copperline
pip install --user amitools
- name: Smoke run
run: |
export PATH="$HOME/.local/bin:$PATH" # pip --user (xdftool)
chmod +x devsoak ci/smoke.sh
COPPERLINE=/opt/copperline/AppRun \
ci/smoke.sh test/aros-lide.toml lide.device 0 512,2K