-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
codemagic.yaml
29 lines (27 loc) · 859 Bytes
/
codemagic.yaml
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
workflows:
aarch64-darwin-build:
triggering:
events:
- tag
scripts:
- name: Update submodule
script: git submodule update --init --recursive
- name: Install rust non-interactively
script: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- name: Init rust
script: $HOME/.cargo/bin/rustup default stable
- name: Build
script: $HOME/.cargo/bin/cargo build --release
- name: Move artifact
script: |
chmod +x target/release/mltd
mv target/release/mltd mltd-$(git describe --tags --always)-aarch64-apple-darwin
artifacts:
- mltd-*
cache:
cache_paths:
- $HOME/.cargo/bin/
- $HOME/.cargo/registry/index/
- $HOME/.cargo/registry/cache/
- $HOME/.cargo/git/db/
- target/