-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9503ee
commit f1750d5
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build MacOS | ||
|
||
on: | ||
push: | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: src | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
|
||
- name: Install create-dmg | ||
run: brew install create-dmg | ||
|
||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: | | ||
mkdir build | ||
cd build | ||
qmake CONFIG+=release ..\QOpenHD.pro | ||
ls -a | ||
create-dmg QOpenHD.dmg QOpenHD.app | ||
- name: Upload to Github | ||
uses: 'actions/upload-artifact@v3' | ||
with: | ||
name: "OpenHD Image Writer" | ||
path: | | ||
/Users/runner/work/OpenHD-ImageWriter/OpenHD-ImageWriter/build/QOpenHD.dmg | ||
if-no-files-found: error |