name: macOS Build on: push: branches: - qml pull_request: branches: - qml jobs: build: runs-on: macos-latest steps: - name: Checkout code uses: actions/checkout@v3 - name: Set up Qt environment run: | # Install Homebrew if not installed which brew || /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # Install Qt 5.x and CMake brew install qt@5 cmake # Add Qt 5 to PATH echo "/usr/local/opt/qt@5/bin" >> $GITHUB_PATH echo "/usr/local/opt/qt@5/lib/cmake" >> $GITHUB_PATH echo "/usr/local/opt/qt@5/lib" >> $GITHUB_PATH echo "/usr/local/opt/qt@5/include" >> $GITHUB_PATH - name: Build Project run: | mkdir build cd build cmake -DCMAKE_PREFIX_PATH=$(brew --prefix qt@5) ../src cmake --build . - name: Create DMG run: | brew install create-dmg create-dmg 'build_rpi-imager_someversion' # This creates the DMG in the build directory - name: Upload Artifact uses: actions/upload-artifact@v3 with: name: rpi-imager-dmg path: build/build_rpi-imager_someversion.dmg