Skip to content

Compile on iOS-Simulator #68

Compile on iOS-Simulator

Compile on iOS-Simulator #68

Workflow file for this run

name: Compile on iOS
on:
create:
branches: [ ios ]
push:
branches: [ ios ]
pull_request:
branches: [ ios ]
env:
APPLICATION: "addhoursandminutes"
jobs:
build:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Qt for Desktop
uses: jurplel/install-qt-action@v3
with:
version: '6.5.*'
- name: Set QT_HOST_PATH
run: |
echo QT_HOST_PATH=$Qt6_DIR >> $GITHUB_ENV
- name: Install Qt for iOS
uses: jurplel/install-qt-action@v3
with:
target: 'ios'
version: '6.5.*'
- name: Setup env
run: |
export PATH=$Qt6_DIR/bin:$PATH
ln -s /Users/runner/work/${{env.APPLICATION}}/Qt/6.5.0/macos /Users/runner/work/${{env.APPLICATION}}/Qt/6.5.0/clang_64
qmake --version
- name: Configure
env:
XADT: ${{ secrets.XCODE_ATTRIBUTE_DEVELOPMENT_TEAM }}
run: |
cmake -E make_directory build
cd build
$Qt6_DIR/bin/qt-cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=$XADT
- name: Compile
run: |
cd build
cmake --build . -- -allowProvisioningUpdates