forked from vita-rust/psp2-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
48 lines (35 loc) · 992 Bytes
/
Makefile.toml
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
extend = "common.toml"
[config]
load_script = [
"""
if [ ! -f common.toml ]; then
curl -SsL https://github.com/vita-rust/common/raw/master/common.toml > common.toml;
fi
"""
]
[tasks.default]
alias = "build"
### TESTING ####################################################################
[tasks.build-native]
command = "cargo"
args = ["build"]
[tasks.test-native]
command = "cargo"
args = ["test"]
### RELEASE FLOW ###############################################################
[tasks.pre-publish]
dependencies = ["verify-project"]
[tasks.publish]
alias = 'crates-publish'
[tasks.crates-publish]
script = ['cargo publish --token $CRATES_IO_TOKEN']
[tasks.post-publish]
dependencies = ["chandler"]
[tasks.chandler]
description = "Update GitHub release notes with appropriate CHANGELOG sections"
install_script = ["gem install chandler -n target/gems"]
script = [
'''
target/gems/chandler push --github=$(echo $CARGO_MAKE_CRATE_REPOSITORY | cut -d/ -f4-5)
'''
]