qt-test-app/.drone.yml
Dorian Zedler 2c5b3e7411
Some checks failed
continuous-integration/drone/push Build is failing
Update '.drone.yml'
2022-08-11 00:11:04 +02:00

86 lines
No EOL
2 KiB
YAML

---
kind: pipeline
name: build-qt-android-app
steps:
- name: build apk
image: itsblue.dev/plugins/qt-android:5.15.5-1
settings:
qmake_arguments: "CONFIG+=release"
androiddeployqt_arguments: "--android-platform android-31"
---
kind: pipeline
type: docker
name: start-github-action
steps:
- name: create workflow_dispatch event
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: start
---
kind: pipeline
type: exec
name: build-qt-macos-app
platform:
os: darwin
arch: amd64
steps:
- name: test
commands:
- mkdir build
- cd build
- "export PATH=$PATH:/usr/local/bin"
- pip3 install -U pip
- pip3 install -U aqtinstall
- aqt install-qt mac ios $QT_VERSION -m all
- awk '!/BuildSystemType|Original/' ./$QT_VERSION/ios/mkspecs/macx-xcode/WorkspaceSettings.xcsettings > ./$QT_VERSION/ios/mkspecs/macx-xcode/WorkspaceSettings.xcsettings
- ./$QT_VERSION/ios/bin/qmake ..
- make
environment:
QT_VERSION: "5.15.2"
depends_on:
- start-github-action
---
kind: pipeline
type: docker
name: stop-github-action
steps:
- name: cancel and delete workflow
image: itsblue.dev/plugins/github-workflow-controller
settings:
github_token:
from_secret: github-token
github_repo: "dorianim/drone-runner"
workflow_id: "drone.yml"
workflow_actions: cancel,delete
depends_on:
- build-qt-macos-app
trigger:
status:
- success
#- failure
---
kind: pipeline
type: docker
name: release-package
steps:
- name: publish package
image: alpine/curl
commands:
- env
- "curl --fail --user $GITEA_USER:$GITEA_TOKEN --upload-file outputs/apk/debug/android-build-debug.apk https://itsblue.dev/api/packages/dorian/generic/qt-test-app/0.0.0-preview-${DRONE_COMMIT_SHA}/qt-test-app.apk"
environment:
GITEA_USER:
from_secret: gitea-user
GITEA_TOKEN:
from_secret: gitea-token
depends_on:
- build-qt-android-app
- build-qt-macos-app