add mac build CI to drone

This commit is contained in:
wowario 2020-07-25 23:53:45 +03:00
parent bda76b6be9
commit 9e681cb4c2
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -1,10 +1,56 @@
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: linux-build
steps: steps:
- name: wow-ci - name: linux-build
image: wow-dependencies:v1.0 image: wow-dependencies:v1.0
commands: commands:
- make -j2 release-static-linux-x86_64 - 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