name: Build Packages # Builds the seven Slackware .txz packages defined under packages/ # (podman, conmon, crun, netavark, aardvark-dns, passt, fuse-overlayfs) # inside a Slackware container, verifies + consolidates their checksums, and # uploads the result as a workflow artifact. # # Intentionally does NOT commit any built binary back to the repository — # packages/**, *.txz, dist/ are all git-ignored (see .gitignore). Artifacts # only ever leave this workflow via the "Upload build artifacts" step below # (retained by GitHub Actions, not the repo) or, for tagged releases, via # release.yml attaching them to a GitHub Release. # # See docs/ARCHITECTURE.md section 5 (Paketmanagement). on: push: branches: [main] paths: - "packages/**" - "versions.env" - "scripts/**" - ".github/workflows/build-packages.yml" pull_request: paths: - "packages/**" - "versions.env" - "scripts/**" - ".github/workflows/build-packages.yml" workflow_dispatch: inputs: packages: description: > Space-separated package names to build (default: all seven). Example: "podman conmon" required: false default: "" workflow_call: outputs: artifact-name: description: "Name of the uploaded dist/ artifact" value: ${{ jobs.build.outputs.artifact-name }} # Pin the Slackware build image by tag here. vbatts/slackware is a # long-standing, widely used Slackware Docker image; swap this (and ideally # pin by digest) if the project standardizes on a different/self-hosted # base image. See scripts/ci/setup-slackware-buildenv.sh for how missing # build dependencies are bootstrapped on top of whatever this image ships. env: SLACKWARE_IMAGE: "vbatts/slackware:15.0" jobs: build: name: Build .txz packages runs-on: ubuntu-latest container: image: ${{ env.SLACKWARE_IMAGE }} outputs: artifact-name: ${{ steps.artifact-name.outputs.value }} steps: - name: Install git and tar (needed before actions/checkout can run) run: | (command -v git && command -v tar) || \ (echo "!! base image is missing git/tar — see SLACKWARE_IMAGE in this workflow" && exit 1) - uses: actions/checkout@v4 - name: Set up Slackware build environment run: scripts/ci/setup-slackware-buildenv.sh - name: Build packages run: scripts/build-packages.sh ${{ github.event.inputs.packages }} - name: Verify and consolidate checksums run: scripts/checksums.sh - name: Compute artifact name id: artifact-name run: echo "value=podman-packages-${{ github.sha }}" >> "$GITHUB_OUTPUT" - name: Upload build artifacts uses: actions/upload-artifact@v4 with: name: ${{ steps.artifact-name.outputs.value }} path: | dist/*.txz dist/*.sha256 dist/*.md5 dist/CHECKSUMS.sha256 dist/CHECKSUMS.md5 if-no-files-found: error retention-days: 14