From 0db93fd5eed3048c0c7e4cfae58bd05174825fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 26 Sep 2023 20:14:58 +0200 Subject: [PATCH] Use GPXSee compatible Qt versions --- .github/workflows/osx.yml | 41 +++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index 32df67c..eecb37a 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -6,17 +6,50 @@ on: - master jobs: - build: - name: QtPBFImagePlugin + qt5: + name: QtPBFImagePlugin Qt5 build runs-on: macos-latest steps: - name: Set environment variables run: echo "PATH=/usr/local/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV - name: Checkout uses: actions/checkout@v3 - - name: Install dependencies - run: brew install qt6 protobuf@21 + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: '5.15.2' + - name: Install protobuf + run: brew install protobuf@21 - name: Configure build run: qmake PROTOBUF=/usr/local/opt/protobuf@21 pbfplugin.pro - name: Build project run: make -j3 + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: libpbf-qt5.dylib + path: libpbf.dylib + + qt6: + name: QtPBFImagePlugin Qt6 build + runs-on: macos-latest + steps: + - name: Set environment variables + run: echo "PATH=/usr/local/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV + - name: Checkout + uses: actions/checkout@v3 + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: '6.5.1' + - name: Install protobuf + run: brew install protobuf@21 + - name: Configure build + run: qmake PROTOBUF=/usr/local/opt/protobuf@21 pbfplugin.pro + - name: Build project + run: make -j3 + - name: Upload artifacts + uses: actions/upload-artifact@v3 + with: + name: libpbf-qt6.dylib + path: libpbf.dylib