Skip to content

Commit 2010b79

Browse files
customize workflows
1 parent 2ea67e6 commit 2010b79

File tree

2 files changed

+75
-65
lines changed

2 files changed

+75
-65
lines changed

.github/workflows/build.yml

+64-63
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
build_type:
77
description: Type of build (Debug, Release, RelWithDebInfo, MinSizeRel)
88
type: string
9-
default: Debug
9+
default: Release
1010
is_qt_cached:
1111
description: Enable Qt caching or not
1212
type: string
@@ -37,21 +37,21 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
include:
40-
- os: ubuntu-20.04
41-
qt_ver: 5
42-
43-
- os: ubuntu-20.04
44-
qt_ver: 6
45-
qt_host: linux
46-
qt_arch: ""
47-
qt_version: "6.2.4"
48-
qt_modules: "qt5compat qtimageformats"
49-
qt_tools: ""
50-
51-
- os: windows-2022
52-
name: "Windows-MinGW-w64"
53-
msystem: clang64
54-
vcvars_arch: "amd64_x86"
40+
# - os: ubuntu-20.04
41+
# qt_ver: 5
42+
43+
# - os: ubuntu-20.04
44+
# qt_ver: 6
45+
# qt_host: linux
46+
# qt_arch: ""
47+
# qt_version: "6.2.4"
48+
# qt_modules: "qt5compat qtimageformats"
49+
# qt_tools: ""
50+
51+
# - os: windows-2022
52+
# name: "Windows-MinGW-w64"
53+
# msystem: clang64
54+
# vcvars_arch: "amd64_x86"
5555

5656
- os: windows-2022
5757
name: "Windows-MSVC"
@@ -65,36 +65,36 @@ jobs:
6565
qt_modules: 'qt5compat qtimageformats'
6666
qt_tools: ''
6767

68-
- os: windows-2022
69-
name: "Windows-MSVC-arm64"
70-
msystem: ""
71-
architecture: "arm64"
72-
vcvars_arch: "amd64_arm64"
73-
qt_ver: 6
74-
qt_host: windows
75-
qt_arch: 'win64_msvc2019_arm64'
76-
qt_version: '6.6.1'
77-
qt_modules: 'qt5compat qtimageformats'
78-
qt_tools: ''
79-
80-
- os: macos-12
81-
name: macOS
82-
macosx_deployment_target: 11.0
83-
qt_ver: 6
84-
qt_host: mac
85-
qt_arch: ''
86-
qt_version: '6.6.1'
87-
qt_modules: 'qt5compat qtimageformats'
88-
qt_tools: ''
89-
90-
- os: macos-12
91-
name: macOS-Legacy
92-
macosx_deployment_target: 10.13
93-
qt_ver: 5
94-
qt_host: mac
95-
qt_version: "5.15.2"
96-
qt_modules: ""
97-
qt_tools: ""
68+
# - os: windows-2022
69+
# name: "Windows-MSVC-arm64"
70+
# msystem: ""
71+
# architecture: "arm64"
72+
# vcvars_arch: "amd64_arm64"
73+
# qt_ver: 6
74+
# qt_host: windows
75+
# qt_arch: 'win64_msvc2019_arm64'
76+
# qt_version: '6.6.1'
77+
# qt_modules: 'qt5compat qtimageformats'
78+
# qt_tools: ''
79+
80+
# - os: macos-12
81+
# name: macOS
82+
# macosx_deployment_target: 11.0
83+
# qt_ver: 6
84+
# qt_host: mac
85+
# qt_arch: ''
86+
# qt_version: '6.6.1'
87+
# qt_modules: 'qt5compat qtimageformats'
88+
# qt_tools: ''
89+
90+
# - os: macos-12
91+
# name: macOS-Legacy
92+
# macosx_deployment_target: 10.13
93+
# qt_ver: 5
94+
# qt_host: mac
95+
# qt_version: "5.15.2"
96+
# qt_modules: ""
97+
# qt_tools: ""
9898

9999
runs-on: ${{ matrix.os }}
100100

@@ -591,20 +591,21 @@ jobs:
591591
run: |
592592
ccache -s
593593
594-
flatpak:
595-
runs-on: ubuntu-latest
596-
container:
597-
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-23.08
598-
options: --privileged
599-
steps:
600-
- name: Checkout
601-
uses: actions/checkout@v4
602-
if: inputs.build_type == 'Debug'
603-
with:
604-
submodules: "true"
605-
- name: Build Flatpak (Linux)
606-
if: inputs.build_type == 'Debug'
607-
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
608-
with:
609-
bundle: "Prism Launcher.flatpak"
610-
manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml
594+
# flatpak:
595+
# runs-on: ubuntu-latest
596+
# container:
597+
# image: bilelmoussaoui/flatpak-github-actions:kde-5.15-23.08
598+
# options: --privileged
599+
# steps:
600+
# - name: Checkout
601+
# uses: actions/checkout@v4
602+
# if: inputs.build_type == 'Debug'
603+
# with:
604+
# submodules: "true"
605+
# - name: Build Flatpak (Linux)
606+
# if: inputs.build_type == 'Debug'
607+
# uses: flatpak/flatpak-github-actions/flatpak-builder@v6
608+
# with:
609+
# bundle: "Prism Launcher.flatpak"
610+
# manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml
611+

.github/workflows/trigger_builds.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,22 @@ on:
2020
- ".github/ISSUE_TEMPLATE/**"
2121
- ".markdownlint**"
2222
workflow_dispatch:
23-
23+
inputs:
24+
build_type:
25+
description: 'Build type'
26+
required: true
27+
type: choice
28+
options:
29+
- Release
30+
- Debug
31+
- RelWithDebInfo
32+
- MinSizeRel
2433
jobs:
2534
build_debug:
2635
name: Build Debug
2736
uses: ./.github/workflows/build.yml
2837
with:
29-
build_type: Debug
38+
build_type: ${{ inputs.build_type || 'Release' }}
3039
is_qt_cached: true
3140
secrets:
3241
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}

0 commit comments

Comments
 (0)