Skip to content

Commit

Permalink
customize workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
papaj-na-wrotkach committed May 20, 2024
1 parent 422b6da commit 0bb8e13
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 57 deletions.
111 changes: 56 additions & 55 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
build_type:
description: Type of build (Debug, Release, RelWithDebInfo, MinSizeRel)
type: string
default: Debug
default: Release
is_qt_cached:
description: Enable Qt caching or not
type: string
Expand Down Expand Up @@ -52,12 +52,12 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
qt_ver: 5
qt_host: linux
qt_arch: ""
qt_version: "5.12.8"
qt_modules: "qtnetworkauth"
# - os: ubuntu-20.04
# qt_ver: 5
# qt_host: linux
# qt_arch: ""
# qt_version: "5.12.8"
# qt_modules: "qtnetworkauth"

- os: ubuntu-20.04
qt_ver: 6
Expand All @@ -66,10 +66,10 @@ jobs:
qt_version: "6.2.4"
qt_modules: "qt5compat qtimageformats qtnetworkauth"

- os: windows-2022
name: "Windows-MinGW-w64"
msystem: clang64
vcvars_arch: "amd64_x86"
# - os: windows-2022
# name: "Windows-MinGW-w64"
# msystem: clang64
# vcvars_arch: "amd64_x86"

- os: windows-2022
name: "Windows-MSVC"
Expand All @@ -82,33 +82,33 @@ jobs:
qt_version: "6.7.0"
qt_modules: "qt5compat qtimageformats qtnetworkauth"

- os: windows-2022
name: "Windows-MSVC-arm64"
msystem: ""
architecture: "arm64"
vcvars_arch: "amd64_arm64"
qt_ver: 6
qt_host: windows
qt_arch: "win64_msvc2019_arm64"
qt_version: "6.7.0"
qt_modules: "qt5compat qtimageformats qtnetworkauth"

- os: macos-12
name: macOS
macosx_deployment_target: 11.0
qt_ver: 6
qt_host: mac
qt_arch: ""
qt_version: "6.7.0"
qt_modules: "qt5compat qtimageformats qtnetworkauth"

- os: macos-12
name: macOS-Legacy
macosx_deployment_target: 10.13
qt_ver: 5
qt_host: mac
qt_version: "5.15.2"
qt_modules: "qtnetworkauth"
# - os: windows-2022
# name: "Windows-MSVC-arm64"
# msystem: ""
# architecture: "arm64"
# vcvars_arch: "amd64_arm64"
# qt_ver: 6
# qt_host: windows
# qt_arch: "win64_msvc2019_arm64"
# qt_version: "6.7.0"
# qt_modules: "qt5compat qtimageformats qtnetworkauth"

# - os: macos-12
# name: macOS
# macosx_deployment_target: 11.0
# qt_ver: 6
# qt_host: mac
# qt_arch: ""
# qt_version: "6.7.0"
# qt_modules: "qt5compat qtimageformats qtnetworkauth"

# - os: macos-12
# name: macOS-Legacy
# macosx_deployment_target: 10.13
# qt_ver: 5
# qt_host: mac
# qt_version: "5.15.2"
# qt_modules: "qtnetworkauth"

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

Expand Down Expand Up @@ -608,20 +608,21 @@ jobs:
run: |
ccache -s
flatpak:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-6.7
options: --privileged
steps:
- name: Checkout
uses: actions/checkout@v4
if: inputs.build_type == 'Debug'
with:
submodules: "true"
- name: Build Flatpak (Linux)
if: inputs.build_type == 'Debug'
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: "Prism Launcher.flatpak"
manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml
# flatpak:
# runs-on: ubuntu-latest
# container:
# image: bilelmoussaoui/flatpak-github-actions:kde-6.7
# options: --privileged
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# if: inputs.build_type == 'Debug'
# with:
# submodules: "true"
# - name: Build Flatpak (Linux)
# if: inputs.build_type == 'Debug'
# uses: flatpak/flatpak-github-actions/flatpak-builder@v6
# with:
# bundle: "Prism Launcher.flatpak"
# manifest-path: flatpak/org.prismlauncher.PrismLauncher.yml

13 changes: 11 additions & 2 deletions .github/workflows/trigger_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,22 @@ on:
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
workflow_dispatch:

inputs:
build_type:
description: 'Build type'
required: true
type: choice
options:
- Release
- Debug
- RelWithDebInfo
- MinSizeRel
jobs:
build_debug:
name: Build Debug
uses: ./.github/workflows/build.yml
with:
build_type: Debug
build_type: ${{ inputs.build_type || 'Release' }}
is_qt_cached: true
secrets:
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}
Expand Down

0 comments on commit 0bb8e13

Please sign in to comment.