-
Notifications
You must be signed in to change notification settings - Fork 49
70 lines (56 loc) · 1.85 KB
/
autobuild.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Autobuild
on:
schedule:
# Run the build as part of a fixed nightly schedule
- cron: '15 06 * * *' # UTC 6:15am, corresponds to 00:15 CST or 01:15 CDT
push:
paths:
# Also run the build when these files are modified as part of a PR
- '.github/workflows/autobuild.yml'
- '.github/workflows/delta-sbatch-slurm.sh'
- '.github/workflows/jobmonitor.sh'
# Cancel in progress CI runs when a new run targeting the same PR or branch/tag is triggered.
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
delta:
timeout-minutes: 60
runs-on: delta
name: Delta mpi-linux-x86_64 # Could test various builds (e.g., MPI, UCX, ...) via a build matrix
steps:
- uses: actions/checkout@v3
- name: Host info
run: |
set -x
echo "Running autobuild on delta"
hostname
uname -a
lsb_release -a
pwd
- name: build
run: |
set -x
export target="mpi-linux-x86_64"
.github/workflows/jobmonitor.sh .github/workflows/delta-sbatch-slurm.sh
- name: results
run: |
set -x
cat result.latest
if grep '0' result.latest
then
res="success"
else
res="failure"
fi
echo $res
git clone [email protected]:UIUC-PPL/autobuild-logs
cd autobuild-logs
mkdir -p delta/mpi-linux-x86_64
cd delta/mpi-linux-x86_64
cp ../../output.latest Delta_mpi-linux-x86_64_$(date '+%Y-%m-%dT%H-%M-%S%z')_output_$res.txt
git add .
git commit -m "Autobuild results for delta/mpi-linux-x86_64"
git push
# should also https://github.com/marketplace/actions/send-email