🌱 Push build - Switch to Dependencies 2025-10[ #606
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: Hyperion CI/PR Builds | |
| run-name: | | |
| ${{ github.event_name == 'push' && '🌱 Push build -' || '' }} | |
| ${{ github.event_name == 'pull_request' && format('📦 Artifacts build for PR {0} - {1}', github.event.pull_request.number, github.event.pull_request.title) || github.event.head_commit.message }} | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| jobs: | |
| # Build Debian Artifacts | |
| linux: | |
| name: 🐧 Debian ${{ matrix.debian.codename[1] }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| debian: [ | |
| { codename: [ 'bullseye', 'Bullseye' ] }, | |
| { codename: [ 'bookworm', 'Bookworm' ] }, | |
| { codename: [ 'trixie', 'Trixie' ] } | |
| ] | |
| uses: ./.github/workflows/debian.yml | |
| secrets: inherit | |
| with: | |
| codename: ${{ matrix.debian.codename[0] }} | |
| event_name: ${{ github.event_name }} | |
| pull_request_number: ${{ github.event.pull_request.number }} | |
| publish: ${{ startsWith(github.event.ref, 'refs/tags') && matrix.debian.codename[0] == 'bullseye' }} | |
| # Build macOS Artifacts | |
| macos: | |
| name: 🍏 macOS | |
| uses: ./.github/workflows/macos.yml | |
| secrets: inherit | |
| with: | |
| event_name: ${{ github.event_name }} | |
| pull_request_number: ${{ github.event.pull_request.number }} | |
| publish: ${{ startsWith(github.event.ref, 'refs/tags') }} | |
| # Build Windows Artifacts | |
| windows: | |
| name: 🪟 Windows | |
| uses: ./.github/workflows/windows.yml | |
| secrets: inherit | |
| with: | |
| event_name: ${{ github.event_name }} | |
| pull_request_number: ${{ github.event.pull_request.number }} | |
| publish: ${{ startsWith(github.event.ref, 'refs/tags') }} | |
| # Publish to GitHub | |
| github_publish: | |
| name: 🚀 Publish to GitHub | |
| if: startsWith(github.event.ref, 'refs/tags') | |
| needs: [linux, macos, windows] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ⬇ Checkout | |
| uses: actions/checkout@v5 | |
| - name: 🔧 Prepare | |
| run: | | |
| echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV | |
| echo "VERSION=$(tr -d '\n' < .version)" >> $GITHUB_ENV | |
| - name: 💾 Download artifacts | |
| uses: actions/download-artifact@v5 | |
| with: | |
| pattern: artifact-* | |
| path: all-artifacts | |
| - name: 📦 Upload | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: Hyperion ${{ env.VERSION }} | |
| tag_name: ${{ env.TAG }} | |
| files: "all-artifacts/**" | |
| draft: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Build DEB/RPM Packages for APT/DNF Repository (runs only on tagged commits) | |
| repo_build: | |
| name: 🚀 Let Hyperion build its own repository (APT/DNF) | |
| if: startsWith(github.event.ref, 'refs/tags') | |
| needs: [ github_publish ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📲 Dispatch APT/DNF build | |
| if: ${{ env.SECRET_HYPERION_BOT_TOKEN != null }} | |
| uses: peter-evans/[email protected] | |
| with: | |
| repository: hyperion-project/hyperion.releases-ci | |
| token: ${{ secrets.HYPERION_BOT_TOKEN }} | |
| event-type: releases_repo_build | |
| client-payload: '{ "head_sha": "${{ github.sha }}", "repo_checkout": "hyperion-project/hyperion.ng" }' | |
| env: | |
| SECRET_HYPERION_BOT_TOKEN: ${{ secrets.HYPERION_BOT_TOKEN }} |