Skip to content

Update GitHub Actions workflow for Qt installation #44

Update GitHub Actions workflow for Qt installation

Update GitHub Actions workflow for Qt installation #44

Workflow file for this run

name: macOS Qt Universal Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: 🧷 Checkout Repository
uses: actions/checkout@v4
- name: 📦 Install Qt with Multimedia
uses: jurplel/install-qt-action@v4
with:
version: '6.10'
target: 'desktop'
arch: 'clang_64'
modules: 'qtmultimedia'
- name: 🌐 Add Qt to PATH
# Cette étape permet d'utiliser 'macdeployqt' directement sans le chemin complet
run: echo "$QT_ROOT_DIR/bin" >> $GITHUB_PATH
- name: 🔍 Debug Installation Path
run: |
echo "Qt is installed at: $QT_ROOT_DIR"
which macdeployqt
- name: 🛠️ Configure CMake for Universal Build
run: |
cmake -S ./src -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \
-DCMAKE_PREFIX_PATH="$QT_ROOT_DIR"
- name: 🏗️ Build Application
run: cmake --build build --config Release
- name: 📦 Bundle Application with macdeployqt
run: |
macdeployqt build/FastSoundSystem.app -verbose=2
- name: 🛫 Upload macOS App Bundle
uses: actions/upload-artifact@v4
with:
name: FastSoundSystem-macOS
path: build/FastSoundSystem.app