mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
name: build-macos
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-11, macos-12]
|
|
version: [5.15.2, 6.5.3]
|
|
arch: [clang_64]
|
|
include:
|
|
- version: 5.15.2
|
|
cmake-prefix-path: 'lib/cmake/Qt5'
|
|
modules: 'qtcharts'
|
|
- version: 6.5.3
|
|
cmake-prefix-path: 'lib/cmake/Qt6'
|
|
moudles: 'qtcharts qtserialbus qtserialport qtwebsockets'
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v3
|
|
- name: install qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
aqtversion: '==3.1.*'
|
|
version: ${{ matrix.version }}
|
|
target: 'desktop'
|
|
arch: ${{ matrix.arch }}
|
|
dir: ${{ github.workspace }}
|
|
host: 'mac'
|
|
modules: ${{ matrix['moudles']}}
|
|
- name: build for macos
|
|
run: |
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/${{ matrix.cmake-prefix-path }}' -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" ../
|
|
make
|