X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=.github%2Fworkflows%2Fmain.yml;h=e75905f06126da6fd41fc61b41078e6ec109a878;hp=125b99b5d1f535509aadec14ecdae9288dc00b38;hb=61219bb0ca15a6356fde510fd114fd3b6628f08b;hpb=df7f5994f219e50e1acd94f2f4e3c0fdc8c66534 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 125b99b5..e75905f0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -93,6 +93,12 @@ jobs: CCACHE_MAXSIZE: 100M steps: + - name: Select Xcode version + uses: maxim-lobanov/setup-xcode@v1 + with: + # Newer Xcode versions may not officially be supported by Qt + xcode-version: '10.3' + - name: Check out source code uses: actions/checkout@v2 with: @@ -114,7 +120,7 @@ jobs: # If Homebrew begins failing in the future due to out-of-date versions, # it can be re-enabled here as follows... # run: brew update && [below command] - run: brew install boost ccache ninja qca qt5 + run: brew install boost ccache ninja qca qt@5 - name: Get timestamp id: get-timestamp @@ -136,24 +142,25 @@ jobs: mkdir build cd build && cmake $GITHUB_WORKSPACE \ -GNinja \ - -DCMAKE_PREFIX_PATH=/usr/local/opt/qt/lib/cmake \ + -DWANT_CORE=ON \ + -DWANT_QTCLIENT=ON \ + -DWANT_MONO=ON \ + -DCMAKE_PREFIX_PATH=$(brew --prefix)/opt/qt@5 \ + -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/bundles \ -DCMAKE_BUILD_TYPE=Release \ -DBUILD_TESTING=ON \ -DFATAL_WARNINGS=OFF \ - -DDEPLOY=ON \ - -DENABLE_SHARED=OFF + -DENABLE_SHARED=OFF \ + -DBUNDLE=ON \ - name: Build - run: | - # Deploy scripts require qmake in the path - export PATH=$PATH:/usr/local/opt/qt5/bin - cd build && ninja + run: cd build && ninja - name: Run tests run: cd build && ctest - name: Install - run: cd build && DESTDIR=$GITHUB_WORKSPACE/image ninja install + run: cd build && ninja install - name: Print ccache stats run: ccache -s @@ -162,7 +169,7 @@ jobs: uses: actions/upload-artifact@v2 with: name: macOS - path: ${{ github.workspace }}/build/*.dmg + path: ${{ github.workspace }}/bundles/*.dmg # ------------------------------------------------------------------------------------------------------------------------------------------ build-windows: