QtPBFImagePlugin/.github/workflows/osx.yml

56 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-27 17:42:17 +02:00
name: OS X
on:
push:
branches:
- master
jobs:
2023-09-26 20:14:58 +02:00
qt5:
name: QtPBFImagePlugin Qt5 build
2023-05-05 23:26:03 +02:00
runs-on: macos-latest
2021-10-27 17:42:17 +02:00
steps:
2023-09-21 01:00:14 +02:00
- name: Set environment variables
run: echo "PATH=/usr/local/opt/protobuf@21/bin:$PATH" >> $GITHUB_ENV
2021-10-27 17:42:17 +02:00
- name: Checkout
2023-09-21 00:45:41 +02:00
uses: actions/checkout@v3
2023-09-26 20:14:58 +02:00
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.15.2'
- name: Install protobuf
run: brew install protobuf@21
2021-10-27 17:42:17 +02:00
- name: Configure build
2023-09-21 01:00:14 +02:00
run: qmake PROTOBUF=/usr/local/opt/protobuf@21 pbfplugin.pro
2021-10-27 17:42:17 +02:00
- name: Build project
run: make -j3
2023-09-26 20:14:58 +02:00
- 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