build / build (push) Successful in 30m42s
- build-packages.sh rebuilds a package only when its srcpkgs/ directory changed, its binary package is missing, or a dry-run install finds a shared library Void no longer provides; DASOS_REBUILD=1 rebuilds all. An unchanged `make packages` takes 20 s instead of 17 min on the CI host - ci/release.sh publishes both ISOs and SHA256SUMS as a Gitea release when the workflow runs for a v* tag matching VERSION - README and TODO updated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
# Builds the Das OS packages and both ISO images on the CI host (see ci/runner).
|
|
# Build output stays on the host in DASOS_OUT, set in the runner's config.
|
|
# A v* tag also publishes the images as a release (ci/release.sh).
|
|
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: build-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: dasci
|
|
permissions:
|
|
contents: write # ci/release.sh creates releases
|
|
steps:
|
|
- uses: builtin:checkout
|
|
|
|
# One make run builds the packages once for both images.
|
|
# Go tests run inside the das-tools and das-theme package builds.
|
|
- name: Packages and ISO images
|
|
run: make iso iso-server
|
|
|
|
- name: Result
|
|
run: ls -lh "$DASOS_OUT/iso/"*-"$(cat VERSION)"-x86_64.iso
|
|
|
|
# A v* tag publishes both images and their checksums as a release
|
|
- name: Release
|
|
if: startsWith(gitea.ref, 'refs/tags/v')
|
|
env:
|
|
GITEA_TOKEN: ${{ gitea.token }}
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
run: ci/release.sh "${{ gitea.ref_name }}" "$DASOS_OUT/iso"
|