-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.space.kts
53 lines (51 loc) · 1.36 KB
/
.space.kts
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
job("Build") {
startOn {
gitPush {
anyTagMatching {
+"v*"
}
}
}
container(displayName = "Build for musl", image = "atjontv/rust-musl-sccache:1.73.0-3") {
mountDir = "/root"
shellScript {
content = """
set -e
# Build for musl
cargo build --verbose --release --target x86_64-unknown-linux-musl
"""
}
fileArtifacts {
remotePath = "hisho-musl.bin"
localPath = "target/x86_64-unknown-linux-musl/release/hisho_cli2"
}
cache {
storeKey = "sccache-{{ hashFiles('.cache.lock') }}"
localPath = "/root/.cache/sccache"
}
cache {
storeKey = "cargo-{{ hashFiles('.cache.lock') }}"
localPath = "/root/.cargo"
}
}
}
job("Test") {
container(displayName = "Test for musl", image = "atjontv/rust-musl-sccache:1.73.0-3") {
mountDir = "/root"
shellScript {
content = """
set -e
# Test for musl
cargo test --all --all-features --verbose --release --target x86_64-unknown-linux-musl
"""
}
cache {
storeKey = "sccache-{{ hashFiles('.cache.lock') }}"
localPath = "/root/.cache/sccache"
}
cache {
storeKey = "cargo-{{ hashFiles('.cache.lock') }}"
localPath = "/root/.cargo"
}
}
}