From 9e681cb4c293ebb4eefe232d5685429206f1e190 Mon Sep 17 00:00:00 2001 From: wowario Date: Sat, 25 Jul 2020 23:53:45 +0300 Subject: [PATCH] add mac build CI to drone --- .drone.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 97b2cc3eb..37434a6c5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,56 @@ --- kind: pipeline type: docker -name: default +name: linux-build steps: -- name: wow-ci +- name: linux-build image: wow-dependencies:v1.0 commands: - make -j2 release-static-linux-x86_64 + +- name: discord linux notification + image: appleboy/drone-discord + settings: + webhook_id: + from_secret: discord_webhook_id + webhook_token: + from_secret: discord_webhook_token + message: Linux build {{build.number}} complete. {{build.link}} + depends_on: + - linux-build + +- name: matrix linux notification + image: plugins/matrix + settings: + homeserver: https://matrix.org + roomid: tfuEmpojJyhMTMjNeN:matrix.org + username: + from_secret: matrix_username + password: + from_secret: matrix_password + template: Linux build {{build.number}} complete. {{build.link}} + depends_on: + - linux-build + +--- +kind: pipeline +type: ssh +name: mac-build + +server: + host: + from_secret: mac-server + user: + from_secret: mac-user + ssh_key: + from_secret: ssh-key + +steps: +- name: mac-build + commands: + - /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" + - export PATH=/usr/local/bin:$PATH + - brew update + - brew bundle --file=contrib/brew/Brewfile + - make -j3 release-static \ No newline at end of file