Skip to content

Commit

Permalink
Deployment Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Jan 18, 2025
1 parent 2a43b69 commit 9ff1886
Show file tree
Hide file tree
Showing 11 changed files with 43 additions and 31 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/android-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ on:
- '.github/workflows/android-linux.yml'
- 'deploy/android/**'
- 'src/**'
- 'android/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/android-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: Android-MacOS
on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/android-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ on:
- '.github/workflows/android-windows.yml'
- 'deploy/android/**'
- 'src/**'
- 'android/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ on:
- 'custom-example/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/docker-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ on:
- 'v*'
pull_request:
paths:
- 'src/**'
- '.github/workflows/docker-linux.yml'
- 'deploy/docker/**'
- 'deploy/linux/**'
- 'src/**'
- 'CMakeLists.txt'

concurrency:
# cancel jobs on PRs only
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: iOS
on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ on:
- 'src/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ on:
- 'src/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down Expand Up @@ -89,11 +89,16 @@ jobs:
cache: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

- name: Import Code Signing Certificate
if: github.event_name != 'pull_request'
uses: apple-actions/import-codesign-certs@v3
with:
p12-file-base64: ${{ secrets.MACOS_SIGNING_CERTS_P12 }}
p12-password: ${{ secrets.MACOS_SIGNING_CERTS_PASS }}

- run: |
echo "APPLE_APPID_TEAM_ID=Mac Developer ID Application: Donald Gagne" >> "$GITHUB_ENV"
shell: bash
- run: mkdir ${{ runner.temp }}/shadow_build_dir

- name: Configure
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ on:
- 'src/**'
- 'CMakeLists.txt'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
# concurrency:
# group: ${{ github.workflow }}-${{ github.ref }}
# cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

jobs:
build:
Expand Down
9 changes: 7 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ endif()

# set(CMAKE_OSX_ARCHITECTURES "arm64")
# set(CMAKE_OSX_SYSROOT "iphoneos")
# set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
if(APPLE AND NOT IOS)
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
endif()

include(Git)

Expand Down Expand Up @@ -538,7 +540,10 @@ install(

set(deploy_tool_options_arg "")
if(MACOS)
# set(deploy_tool_options_arg -qmldir=${CMAKE_SOURCE_DIR}/src -verbose=2 -appstore-compliant) # -dmg -hardened-runtime -timestamp
if(ENV{APPLE_APPID_TEAM_ID})
message(STATUS "Signing MacOS Bundle")
set(deploy_tool_options_arg -qmldir=${CMAKE_SOURCE_DIR} -verbose=1 -sign-for-notarization="$ENV{APPLE_APPID_TEAM_ID}") # -dmg
endif()
endif()

qt_generate_deploy_qml_app_script(
Expand Down
Binary file removed deploy/macos/MacCertificates.p12.enc
Binary file not shown.

0 comments on commit 9ff1886

Please sign in to comment.