From 398d11f17852a6421311a539ceea3f134bf09ebb Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Sat, 18 Feb 2023 10:31:50 +0100 Subject: [PATCH] CI: experimental macos pipeline --- .drone.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.drone.yml b/.drone.yml index f9b909e..1c535f1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,3 +1,52 @@ +--- +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-receiver-macos +platform: + os: darwin + arch: amd64 +steps: +- name: test + commands: + - cd receiver + - cargo build --release + - ls target/release +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-receiver-windows +trigger: + status: + - success + #- failure + +--- kind: pipeline type: exec name: build-receiver-windows