From 8d71e193784143d0edd013759a4be55c2309c11a Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Wed, 10 Aug 2022 22:19:44 +0200 Subject: [PATCH] Update '.drone.yml' --- .drone.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8ab26bf..8a7c7e1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,5 @@ kind: pipeline -name: build and publish Qt Android-App +name: build-qt-android-app steps: - name: build apk image: itsblue.dev/plugins/qt-android:5.15.5-1 @@ -7,6 +7,54 @@ steps: 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 - name: publish package image: alpine/curl commands: @@ -16,4 +64,7 @@ steps: GITEA_USER: from_secret: gitea-user GITEA_TOKEN: - from_secret: gitea-token \ No newline at end of file + from_secret: gitea-token +depends_on: +- build-qt-android-app +- build-qt-macos-app \ No newline at end of file