mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-04-16 21:30:06 +00:00
ci: refactor workflows to use reusable workflow calls
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.
This commit is contained in:
committed by
Cameron Gutman
parent
5244313b30
commit
7d829ac0c4
45
.github/workflows/build.yml
vendored
Normal file
45
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
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 }}
|
||||
Reference in New Issue
Block a user