mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
yay
This commit is contained in:
parent
98f89148e5
commit
6896253647
1 changed files with 47 additions and 0 deletions
47
.github/workflows/mac.yml
vendored
Normal file
47
.github/workflows/mac.yml
vendored
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
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 'export PATH="/usr/local/opt/qt@5/bin:$PATH"' >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Build Project
|
||||||
|
run: |
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
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
|
Loading…
Add table
Add a link
Reference in a new issue