mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
name: build-macos
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * *'
|
|
workflow_dispatch: # Enables manually
|
|
# on:
|
|
# push:
|
|
# branches:
|
|
# - master
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [macos-14]
|
|
version: [6.2.4, 6.5.3, 6.8.2]
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
- name: install qt
|
|
uses: jurplel/install-qt-action@v3
|
|
with:
|
|
aqtversion: '==3.1.*'
|
|
dir: ${{ github.workspace }}
|
|
version: ${{ matrix.version }}
|
|
target: 'desktop'
|
|
arch: 'clang_64'
|
|
host: 'mac'
|
|
modules: 'qtcharts qtserialbus qtserialport qtwebsockets'
|
|
- name: build all
|
|
run: |
|
|
# brew uninstall --force node
|
|
# brew unlink unixodbc
|
|
# brew install libiodbc
|
|
mkdir -p /Applications/Postgres.app/Contents/Versions/14/lib
|
|
ln -s /usr/local/Cellar/postgresql@14/14.10/lib/postgresql@14/libpq.5.14.dylib /Applications/Postgres.app/Contents/Versions/14/lib/libpq.5.dylib
|
|
mkdir build
|
|
cd build
|
|
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release ../
|
|
cmake --build . --target all
|
|
- name: make dmg
|
|
run: |
|
|
ls bin/Darwin/Release/xTools
|
|
cd build
|
|
cmake --build . --target xTools_dmg
|
|
ls ../bin/Darwin/Release/xTools
|
|
# rename all dmg with lower case
|
|
find ../bin/Darwin/Release/xTools -name "*.dmg" -exec echo "dmg file is: {}" \;
|
|
|