-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmacos.Jenkinsfile
34 lines (32 loc) · 1.15 KB
/
macos.Jenkinsfile
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
pipeline {
agent any
stages {
stage('build') {
agent { label 'mac' }
steps {
sh '''\
# Set up Rust toolchain.
rustup default 1.73 # TODO parameterize
# Build binary and run it to get version.
version="$(cargo run --release -- --version | awk '{print $2}')"
# Extract binary and append version to name.
mkdir ./out
cp ./target/release/concordium-rosetta ./out/concordium-rosetta_${version}
'''.stripIndent()
stash includes: 'out/', name: 'target'
}
}
stage('push') {
steps {
unstash 'target' // transfers './out'.
sh '''\
# Push binary to S3.
aws s3 cp \
./out/concordium-rosetta* \
s3://distribution.concordium.software/tools/macos/ \
--grants=read=uri=http://acs.amazonaws.com/groups/global/AllUsers
'''.stripIndent()
}
}
}
}