qt-test-app/.drone.yml

86 lines
2.0 KiB
YAML
Raw Normal View History

2022-08-10 22:20:36 +02:00
---
2022-08-01 21:37:07 +02:00
kind: pipeline
2022-08-10 22:19:44 +02:00
name: build-qt-android-app
2022-08-01 21:37:07 +02:00
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"
2022-08-10 22:19:44 +02:00
---
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:
2022-08-10 23:56:44 +02:00
- 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
2022-08-11 00:11:04 +02:00
- awk '!/BuildSystemType|Original/' ./$QT_VERSION/ios/mkspecs/macx-xcode/WorkspaceSettings.xcsettings > ./$QT_VERSION/ios/mkspecs/macx-xcode/WorkspaceSettings.xcsettings
2022-08-10 23:56:44 +02:00
- ./$QT_VERSION/ios/bin/qmake ..
- make
environment:
QT_VERSION: "5.15.2"
2022-08-10 22:19:44 +02:00
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
2022-08-10 23:49:05 +02:00
trigger:
status:
- success
#- failure
2022-08-10 22:19:44 +02:00
---
kind: pipeline
type: docker
name: release-package
2022-08-10 22:20:36 +02:00
steps:
2022-08-01 21:37:07 +02:00
- name: publish package
image: alpine/curl
commands:
- env
2022-08-01 21:59:09 +02:00
- "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"
2022-08-01 21:37:07 +02:00
environment:
GITEA_USER:
from_secret: gitea-user
GITEA_TOKEN:
2022-08-10 22:19:44 +02:00
from_secret: gitea-token
depends_on:
- build-qt-android-app
- build-qt-macos-app