Skip to content

Commit

Permalink
Merge pull request #9 from gnerkus/007-fix-mac-build
Browse files Browse the repository at this point in the history
007: Fix mac build
  • Loading branch information
gnerkus committed Mar 17, 2023
2 parents 5e75090 + 0962f83 commit d2fc3a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ defaults:
env:
SOURCE_DIR: ${{ github.workspace }}
QT_VERSION: 5.15.2
ARTIFACT: ranmoji-mac-build.zip
ARTIFACT: RANMOJI.dmg

jobs:
build:
name: Build
runs-on: macos-latest
runs-on: macos-11
env:
BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed
steps:
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:
- name: (5) Build
working-directory: ${{ runner.temp }}/build
run: |
qmake ${{ env.SOURCE_DIR }}/RANMOJI.pro
qmake -config release ${{ env.SOURCE_DIR }}/RANMOJI.pro
make -j4
- name: (6) Set up SQLite DB
working-directory: ${{ runner.temp }}/build
Expand All @@ -55,9 +55,9 @@ jobs:
- name: (7) Zip build
working-directory: ${{ runner.temp }}
run: |
zip -r ranmoji-mac-build.zip ${{ runner.temp }}/build/*
macdeployqt build/ranmoji.app -dmg
- name: (8) Save build artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.ARTIFACT }}
path: ${{ runner.temp }}/${{ env.ARTIFACT }}
path: ${{ runner.temp }}/build/${{ env.ARTIFACT }}
4 changes: 2 additions & 2 deletions RANMOJI.pro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
QT += core gui sql svg
QT += core gui
qtHaveModule(opengl): QT += opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets sql svg

CONFIG += c++17

Expand Down

0 comments on commit d2fc3a7

Please sign in to comment.