name: Modular container CI on: push: branches: - main workflow_dispatch: permissions: contents: read jobs: release-build: runs-on: ubuntu-24.04 steps: - name: Verify the Docker-capable Gitea runner shell: bash run: | set -euo pipefail test "$(uname -s)" = Linux command -v docker docker version docker info - name: Check out root over SSH uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262 with: fetch-depth: 0 ssh-key: ${{ secrets.RELEASE_CHECKOUT_SSH_KEY }} ssh-user: gitea ssh-known-hosts: >- git.faumaray.ru ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCzZEz9JLrzk6oLiloSbueAN28vYL58Y/dTHBgRuBMMib9IJ1aDJShhr3kwC9sfOT0AzK0uwcMAqCAIkwJwttde8dIg0Mee0cmB/1JkoqFF4X3MUGD1r3nk8SSZNhIiPqo16hDF9Hf3FkovztIlBVntkyP9Iy9hYfP818Tiq3yRXROGdHjR7IfY4jR2QGfGrd/RtvPGExVqusxidy141240A8aRAwMFUqFdEvmXWjizrtCUqcrL/k1GEh0yJzbCdNOVUI6OuWd8tPluSBvmmeoNpKnCSl4Mkg36HObbOyrsme0asZqjcj0od65WYWApMPN0pUqhNu2CP83Nfor2VFwkdPRwe7cAZ0OD/8wyT6Hz5q1wWgf82y4tYDoDRYsd8JU86eebkJ07T5nCrEeC4Sj+qT4S5xv/kECAhxyP4QGnunORnY2fYsdNGzpPvbMN7gHe9UcIcQdOIgV3wrR1qpMVNcd8AEC2A3TRv/jzMCHSjmGGpgiy1Db2CZAjp5+PcjNmjvoPNN0NiA9X4rIVSeTfflWnDRmeNRJeZa73StjpU17EcAf97COUQPGWJQDgpJqINSpYU50fuaLBfzKnIRuiHjKQmyKe/zgRSmulnYFYM3AJfn8Ykg2VvkUQGvCt1+fqYiUa1iVFuwPP3ZigYF1mOZRpPnos5kaNmlB01q2sZw== persist-credentials: false - name: Verify source-free root and resolve every lock over SSH shell: bash env: ECHOION_COMPONENT_SSH_KEY: ${{ secrets.RELEASE_CHECKOUT_SSH_KEY }} run: | set -euo pipefail test ! -e .gitmodules if git ls-files -s | awk '$1 == "160000" { found=1 } END { exit !found }' then echo "root release contains a gitlink" >&2 exit 1 fi scripts/ci-checkout-components.sh \ "$PWD/components" \ "$PWD/dependencies" scripts/prepare-release.sh \ --workspace "$PWD/components" \ --check - name: Build, test, and package without starting Echoion env: CI_VERSION: 2.0.0-ci.${{ gitea.run_number }}.${{ gitea.run_attempt }} run: | set -euo pipefail scripts/release.sh \ --version "$CI_VERSION" \ --component-workspace "$PWD/components" \ --void-source "$PWD/dependencies/VoidLibrary" \ --void-teamspeak-source "$PWD/dependencies/VoidTeamspeak" \ --update-channel beta \ --update-sequence "${{ gitea.run_number }}" - name: Test release control-plane scripts offline shell: bash run: | set -euo pipefail bash scripts/tests/test-gitea-tag-verification.sh . scripts/lib/docker-daemon-path.sh docker_workspace=$(docker_daemon_path "$PWD") for test_script in \ scripts/tests/test_package_components.py \ scripts/tests/test_publish_component_feeds.py \ scripts/tests/test_gitea_release.py do docker run --rm --network none \ --volume "$docker_workspace:/workspace:ro" \ --workdir /workspace \ echoion-release-builder:gcc-16.1.0 \ python3 "$test_script" done