mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2025-03-01 22:30:47 +01:00
Compare commits
3 Commits
bff8c7229c
...
0db93fd5ee
Author | SHA1 | Date | |
---|---|---|---|
0db93fd5ee | |||
f8044efda6 | |||
450a1458a3 |
@ -7,7 +7,7 @@ image:
|
||||
- Visual Studio 2022
|
||||
|
||||
environment:
|
||||
VCPKGDIR: C:\tools\vcpkg\installed\x64-windows
|
||||
VCPKGDIR: C:\tools\vcpkg\installed\x64-windows-static-md
|
||||
matrix:
|
||||
- QTDIR: C:\Qt\5.15\msvc2019_64
|
||||
- QTDIR: C:\Qt\6.5\msvc2019_64
|
||||
@ -16,8 +16,8 @@ install:
|
||||
- cmd: |-
|
||||
set PATH=%QTDIR%\bin;%VCPKGDIR%\tools\protobuf;%PATH%
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat
|
||||
vcpkg install protobuf:x64-windows
|
||||
vcpkg install zlib:x64-windows
|
||||
vcpkg install protobuf:x64-windows-static-md
|
||||
vcpkg install zlib:x64-windows-static-md
|
||||
copy /y %VCPKGDIR%\lib\zlib.lib %VCPKGDIR%\lib\zlibstatic.lib
|
||||
|
||||
build_script:
|
||||
|
41
.github/workflows/osx.yml
vendored
41
.github/workflows/osx.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user