2020-12-02 09:01:45 +08:00
|
|
|
name: ios-macos-11_0
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '*.md'
|
|
|
|
- 'LICENSE'
|
|
|
|
- "doc/**"
|
|
|
|
- "preview/**"
|
|
|
|
- ".github/workflows/android*.yml"
|
|
|
|
- ".github/workflows/macos*.yml"
|
|
|
|
- ".github/workflows/ubuntu*.yml"
|
|
|
|
- ".github/workflows/windows*.yml"
|
2020-12-02 09:23:53 +08:00
|
|
|
- ".github/workflows/ios.yml"
|
2020-12-02 09:01:45 +08:00
|
|
|
# pull_request时触发workflow
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- 'README.md'
|
|
|
|
- 'LICENSE'
|
|
|
|
- "doc/**"
|
|
|
|
- "preview/**"
|
|
|
|
- ".github/workflows/android*.yml"
|
|
|
|
- ".github/workflows/macos*.yml"
|
|
|
|
- ".github/workflows/ubuntu*.yml"
|
|
|
|
- ".github/workflows/windows*.yml"
|
2020-12-02 09:23:53 +08:00
|
|
|
- ".github/workflows/ios.yml"
|
2020-12-02 09:01:45 +08:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-11.0]
|
|
|
|
qt_ver: [5.12.10,5.15.2]
|
|
|
|
qt_target: [ios]
|
|
|
|
steps:
|
|
|
|
- name: prepare env
|
|
|
|
run: |
|
|
|
|
softwareupdate --all --install --force
|
|
|
|
sudo xcode-select --switch /Library/Developer/CommandLineTools
|
|
|
|
|
|
|
|
- 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@v1
|
|
|
|
with:
|
|
|
|
fetch-depth: 1
|
|
|
|
- name: build ios
|
|
|
|
run: |
|
|
|
|
qmake -r -spec macx-ios-clang CONFIG+=release CONFIG+=iphoneos
|
|
|
|
make
|