# 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"