bbn #69
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: build_all | |
| on: | |
| push: | |
| branches: ["**"] | |
| tags: ["v*"] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-lite-raspios-trixie-arm64: | |
| name: build-lite-raspios-trixie-arm64 | |
| runs-on: ubuntu-24.04-arm | |
| env: | |
| DOCKER_IMAGE: arm64v8/debian:trixie | |
| CONTAINER_DISTRO: debian:trixie | |
| PKG_RELEASE: raspios | |
| PKG_DISTRO: trixie | |
| PKG_ARCH: arm64 | |
| BBN_KIND: LITE | |
| EMU: off | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Move install-scripts | |
| run: mv install-scripts cross-build-release/ | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get -y install wget xz-utils | |
| - name: Make CI scripts executable | |
| run: chmod a+x ci/*.sh | |
| - name: Build | |
| run: ci/build-ci.sh | |
| timeout-minutes: 120 | |
| - name: XZ compress image (to dist/) | |
| shell: bash | |
| run: | | |
| set -euo pipefail | |
| DIR="cross-build-release/release/raspios" | |
| OUTDIR="dist" | |
| mkdir -p "$OUTDIR" | |
| IMG="$(ls -1t "${DIR}"/*.img 2>/dev/null | head -n1 || true)" | |
| if [ -z "${IMG}" ]; then | |
| echo "ERROR: No .img found in ${DIR}" | |
| ls -lah "${DIR}" || true | |
| exit 1 | |
| fi | |
| BASENAME="$(basename "$IMG")" | |
| OUT="${OUTDIR}/${BASENAME}.xz" | |
| echo "Compressing: ${IMG} -> ${OUT}" | |
| # stream-compress so we don't need write perms in DIR | |
| xz -T0 -9 -c -v "${IMG}" > "${OUT}" | |
| ls -lh "${IMG}" "${OUT}" | |
| - name: Upload artifact (.img.xz) | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bbn-os-lite-trixie-raspios-arm64-img | |
| path: dist/*.img.xz | |
| if-no-files-found: error | |
| compression-level: 0 | |
| - name: Publish GitHub Release asset (tag v*) | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| token: ${{ github.token }} | |
| files: dist/*.img.xz |