qt-test-app/.drone.yml
Dorian Zedler 43194c96c6
Some checks failed
continuous-integration/drone/push Build is failing
Update '.drone.yml'
2022-08-10 22:20:36 +02:00

72 lines
1.6 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:
- sw_vers
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
---
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