ci: nightly images, nightly documents and tagged releases, in the tree
scripts/nightly.sh, one stage per call, a step each in the workflows:
accept <amd64|aarch64|riscv64|stick-high> the acceptance protocol --
qemu_session.py zuse, and stick_zuse --target qemu-stick-high;
after the last, dict_hash must be equal on the three
test-32 make -C v4 test-32
proofs isabelle build -c -D proof/ (StarForth checked afresh each run)
images the Pi 5 and Mars images, xz for Raspberry Pi Imager
publish org.starship:kernelImage: pc (iso), raspi5, milkv (img.xz),
logs (tar.gz: this run's serial logs, proof log, DoE CSVs)
docs, publish-docs book, vol1-3, api -> org.starship:documentation
.gitea/workflows/nightly.yml (03:00) and nightly-docs.yml (04:00) publish
<LITHOS_VERSION>-SNAPSHOT to starshipos-snapshots; release.yml, on a tag
v*, builds and publishes both to starshipos-releases at the tag's version,
refusing a tag that is not v<LITHOS_VERSION>. Until this branch is merged
to master, master carries copies of the two nightlies naming it.
make init: INIT_DOCS=0 leaves out TeX and Doxygen, INIT_PROOFS=0 Isabelle.
Checked here, stage by stage, in order: the four acceptance boots PASS,
dict_hash 0xfec8c47cfc6f437f on the three, test-32 0 failures, StarForth
proved (0:00:41), images built; publish to a local file:// repository,
and the images' publish to Nexus starshipos-snapshots read back byte for
byte. The docs stage and publish-docs: not yet checked when committed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GE3SDvQn5EoxdGufk84zz2
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
deb71faeb2
commit
a5a29cc857
@@ -44,11 +44,12 @@
|
||||
# Isabelle/HOL, not packaged, are downloaded,
|
||||
# checked by SHA-256 and linked into
|
||||
# /usr/local/bin (build/cache/tools).
|
||||
# INIT_DOCS=0: without the documents' and
|
||||
# proofs' tools (TeX, Doxygen, Isabelle)
|
||||
# scripts/nightly.sh boot <arch> | images | publish <url>
|
||||
# the nightly snapshot: boot-check, the
|
||||
# board images, and Nexus
|
||||
# INIT_DOCS=0: without the documents' tools
|
||||
# (TeX, Doxygen); INIT_PROOFS=0: without
|
||||
# Isabelle
|
||||
# scripts/nightly.sh <stage> the nightly and release builds: acceptance,
|
||||
# proofs, board images, documents, Nexus
|
||||
# (stages: the script's header)
|
||||
# make <other goal> goes to v3/Makefile (make help-hosted)
|
||||
# ==============================================================================
|
||||
|
||||
@@ -257,9 +258,11 @@ write_stick:
|
||||
# tools in build/cache/tools, which make clean keeps; each is linked into /usr/local/bin. syft's
|
||||
# sums are its release's checksums.txt; Isabelle publishes none, so its sums are of the archives
|
||||
# as downloaded on 2026-11-06 -- a download that differs is refused.
|
||||
# INIT_DOCS=0 leaves out what only the documents and the proofs need (the TeX and Doxygen
|
||||
# packages, and Isabelle): what a build of the images needs, as the nightly (scripts/nightly.sh).
|
||||
# INIT_DOCS=0 leaves out what only the documents need (the TeX and Doxygen packages), and
|
||||
# INIT_PROOFS=0 what only the proofs need (Isabelle): the nightly build of the images takes the
|
||||
# first, the nightly documents the second (scripts/nightly.sh).
|
||||
INIT_DOCS ?= 1
|
||||
INIT_PROOFS ?= 1
|
||||
INIT_COMMON := build-essential make git git-lfs python3 curl ca-certificates xz-utils \
|
||||
xorriso mtools gdisk dosfstools fdisk
|
||||
INIT_DOCPKGS := pandoc latexmk texlive-xetex texlive-latex-base texlive-latex-recommended \
|
||||
@@ -317,19 +320,15 @@ init:
|
||||
tar -xzf $(INIT_DL)/$(SYFT_TGZ) -C $(INIT_TOOLS)/syft-$(SYFT_VERSION) syft
|
||||
$(SUDO) ln -sf $(abspath $(INIT_TOOLS))/syft-$(SYFT_VERSION)/syft /usr/local/bin/syft
|
||||
@syft version | sed -n 's/^Version: */ syft /p'
|
||||
ifneq ($(INIT_DOCS),0)
|
||||
ifneq ($(INIT_PROOFS),0)
|
||||
$(call fetch,$(ISABELLE_TGZ),$(ISABELLE_URL),$(ISABELLE_SHA_$(patsubst $(ISABELLE)_%.tar.gz,%,$(ISABELLE_TGZ))))
|
||||
@[ -x $(INIT_TOOLS)/$(ISABELLE)/bin/isabelle ] || { mkdir -p $(INIT_TOOLS) && tar -xzf $(INIT_DL)/$(ISABELLE_TGZ) -C $(INIT_TOOLS); }
|
||||
$(SUDO) ln -sf $(abspath $(INIT_TOOLS))/$(ISABELLE)/bin/isabelle /usr/local/bin/isabelle
|
||||
@echo " isabelle $$(isabelle version)"
|
||||
@echo ""
|
||||
@echo "Ready for $(INIT_ARCHES): make ARCH=<arch> clean qemu, make -C v4 test, make docs,"
|
||||
@echo " make sbom, isabelle build -D proof/"
|
||||
else
|
||||
@echo ""
|
||||
@echo "Ready for $(INIT_ARCHES), without the documents' and proofs' tools: make ARCH=<arch> clean qemu,"
|
||||
@echo " make boot_image TARGET=<board>, make sbom"
|
||||
endif
|
||||
@echo ""
|
||||
@echo "Ready for $(INIT_ARCHES): make ARCH=<arch> clean qemu, make -C v4 test, make sbom" \
|
||||
"$(if $(filter 0,$(INIT_DOCS)),,make docs) $(if $(filter 0,$(INIT_PROOFS)),,isabelle build -D proof/)"
|
||||
|
||||
help:
|
||||
@sed -n '/^# TARGET is/,/^# =====/p' Makefile | sed '$$d; s/^# \{0,1\}//'
|
||||
|
||||
Reference in New Issue
Block a user