mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Updated build workflows to use workflow_call triggers and accept ci_version as input, removing inline CI version generation. Upgraded all actions to v5 and added a new build.yml workflow to orchestrate builds for AppImage, Steam Link, and Windows/macOS using reusable workflows. This improves maintainability and consistency across CI jobs.
46 lines
978 B
YAML
46 lines
978 B
YAML
---
|
|
name: Build
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: build-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
ci_version: ${{ steps.set-ci-version.outputs.ci_version }}
|
|
steps:
|
|
- name: Set CI version
|
|
id: set-ci-version
|
|
shell: bash
|
|
run: |
|
|
CI_VERSION=`echo ${GITHUB_SHA} | cut -c1-6`
|
|
echo "ci_version=${CI_VERSION}" >> "${GITHUB_OUTPUT}"
|
|
|
|
build-appimage:
|
|
needs: setup
|
|
uses: ./.github/workflows/build-appimage.yml
|
|
with:
|
|
ci_version: ${{ needs.setup.outputs.ci_version }}
|
|
|
|
build-steamlink:
|
|
needs: setup
|
|
uses: ./.github/workflows/build-steamlink.yml
|
|
with:
|
|
ci_version: ${{ needs.setup.outputs.ci_version }}
|
|
|
|
build-windows-macos:
|
|
needs: setup
|
|
uses: ./.github/workflows/build-win-mac.yml
|
|
with:
|
|
ci_version: ${{ needs.setup.outputs.ci_version }}
|