Fix environment variable syntax in workflow #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: 🔍 Debug Installation Path | ||
| run: echo "Qt should be installed at: ${{ env.Qt6_DIR }}" | ||
| - name: 🧰 Configure CMake for Universal Build | ||
| env: | ||
| QT_PATH: ${{ env.Qt6_DIR }} | ||
| run: | | ||
| cmake -S ./src -B build \ | ||
| -DCMAKE_BUILD_TYPE=Release \ | ||
| -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" \ | ||
| -DCMAKE_PREFIX_PATH="${QT_PATH}" | ||
| - name: 🏗️ Build Application | ||
| run: cmake --build build --config Release | ||
| - name: 📦 Bundle Application with macdeployqt | ||
| env: | ||
| QT_PATH: ${{ env.Qt6_DIR }} | ||
| run: | | ||
| "${QT_PATH}/bin/macdeployqt" build/FastSoundSystem.app -verbose=2 | ||
| - name: 🛫 Upload macOS App Bundle | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: FastSoundSystem-macOS | ||
| path: build/FastSoundSystem.app | ||