-
Notifications
You must be signed in to change notification settings - Fork 84
/
.ci.yml
57 lines (53 loc) · 1.26 KB
/
.ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# This workflow doesn't support cache invalidation for unused dependencies at the moment
kind: pipeline
type: ssh
name: Build on M1
environment:
CARGO_TERM_COLOR: always
server:
host:
from_secret: host
user:
from_secret: user
password:
from_secret: password
steps:
- name: Update rust
commands:
- /usr/local/bin/rustup-update
- name: Run tests
environment:
SRCENV:
from_secret: srcenv
CARGO_HOME:
from_secret: cargohome
HACK_SKYD_TEST_IGNORE_TREE_TEST_M1: yes
commands:
- source $SRCENV/.cargo/env
- export RUSTUP_HOME=$SRCENV/.rustup
- make test
when:
event:
exclude:
- tag
- name: Build bundle
environment:
SRCENV:
from_secret: srcenv
CARGO_HOME:
from_secret: cargohome
TARGET: aarch64-apple-darwin
VERSION: ${DRONE_TAG}
ARTIFACT: aarch64-apple-darwin
TOOLDIR:
from_secret: tooldir
GITHUB_TOKEN:
from_secret: github_token
commands:
- source $SRCENV/.cargo/env
- export RUSTUP_HOME=$SRCENV/.rustup
- make bundle
- $TOOLDIR/hub release edit $($TOOLDIR/gfind . -type f -name "*.zip" -printf "-a %p ") -m "" "$VERSION"
when:
event:
- tag