forked from simd-everywhere/simde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloud-v-pipeline
47 lines (47 loc) · 1.35 KB
/
cloud-v-pipeline
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
node('J-TESTVM-1') {
stage('Clean Workspace') {
cleanWs()
}
stage('Clone') {
checkout scm
}
stage('Run system_info') {
sh '''#!/bin/bash
cat /proc/cpuinfo
'''
}
stage('Run configure') {
sh '''#!/bin/bash -l
module load riscv64-gnu-glibc/12042024
meson setup build --cross-file=riscv64-cross.txt -Db_lundef=false
'''
}
stage('Run cross compile') {
sh '''#!/bin/bash -l
module load riscv64-gnu-glibc/12042024
meson compile -C build -v
echo "export SIMDE_PATH=$(pwd)" > testvm_pwd.sh
'''
stash includes: 'testvm_pwd.sh', name: 'testvm_pwd.sh'
}
}
node('J-K230-1') {
stage('Clean Workspace') {
cleanWs()
}
stage('Get Cross-compiled binaries') {
unstash 'testvm_pwd.sh'
withCredentials([sshUserPrivateKey(credentialsId: 'TESTVM_SSH_CREDENTIALS', keyFileVariable: 'SSH_KEY')]) {
sh '''#!/bin/bash -v
source testvm_pwd.sh
echo "$SIMDE_PATH"
ssh -i $SSH_KEY [email protected] -p 30013 "cd $SIMDE_PATH && tar cvf - ./*" | tar xvf - -C ./
'''
}
}
stage('Run test') {
sh'''#!/bin/bash
make
'''
}
}