1
0
mirror of https://github.com/jaredtao/TaoQuick.git synced 2025-01-29 21:12:55 +08:00
TaoQuick/.github/workflows/ios-macos-11_0.yml-
2022-01-07 13:22:34 +08:00

56 lines
1.4 KiB
Plaintext

name: ios-macos-11_0
on:
# push代码时触发workflow
push:
paths:
- '3rdparty/**'
- 'examples/**'
- 'mkspecs/**'
- 'src/**'
- '.qmake.conf'
- 'TaoQuick.pro'
- '.github/workflows/ios-macos-11_0.yml'
# pull_request时触发workflow
pull_request:
paths:
- '3rdparty/**'
- 'examples/**'
- 'mkspecs/**'
- 'src/**'
- '.qmake.conf'
- 'TaoQuick.pro'
- '.github/workflows/ios-macos-11_0.yml'
jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0]
qt_ver: [5.15.2]
qt_target: [ios]
steps:
- name: prepare env
run: |
softwareupdate --all --install --force
- name: Install Qt
# if: steps.cacheqt.outputs.cache-hit != 'true'
uses: jurplel/install-qt-action@v2.10.0
with:
# Version of Qt to install
version: ${{ matrix.qt_ver }}
# Target platform for build
target: ${{ matrix.qt_target }}
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: 'true'
- name: build ios
run: |
sudo xcode-select --print-path
sudo xcode-select --switch /Applications/Xcode_13.1.app
qmake -r -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos
make