6
6
- cron : ' 15 06 * * *' # UTC 6:15am, corresponds to 00:15 CST or 01:15 CDT
7
7
push :
8
8
paths :
9
- # Also run the build when this file gets modified as part of a PR
9
+ # Also run the build when these files are modified as part of a PR
10
10
- ' .github/workflows/autobuild.yml'
11
11
- ' .github/workflows/delta-sbatch-slurm.sh'
12
+ - ' .github/workflows/jobmonitor.sh'
12
13
13
14
14
15
# Cancel in progress CI runs when a new run targeting the same PR or branch/tag is triggered.
@@ -18,14 +19,20 @@ concurrency:
18
19
cancel-in-progress : true
19
20
20
21
jobs :
21
- Delta :
22
+ delta :
22
23
timeout-minutes : 60
23
24
24
- runs-on : delta
25
+ permissions :
26
+ # Give the default GITHUB_TOKEN write permission to commit and push the
27
+ # added or changed files to the repository.
28
+ contents : write
29
+
30
+ # runs-on: delta
31
+ runs-on : ubuntu-latest
25
32
name : Delta mpi-linux-x86_64 # Could test various builds (e.g., MPI, UCX, ...) via a build matrix
26
33
27
34
steps :
28
- - uses : actions/checkout@v3
35
+ - uses : actions/checkout@v4
29
36
- name : Host info
30
37
run : |
31
38
set -x
@@ -36,15 +43,52 @@ jobs:
36
43
pwd
37
44
- name : build
38
45
run : |
39
- set -ex
40
- export target="mpi-linux-x86_64"
41
- .github/workflows/jobmonitor.sh .github/workflows/delta-sbatch-slurm.sh
46
+ set -x
47
+ # export target="mpi-linux-x86_64"
48
+ # .github/workflows/jobmonitor.sh .github/workflows/delta-sbatch-slurm.sh
49
+
50
+ echo 0 > result.latest
51
+ echo "hello world" > output.latest
52
+
53
+ - name : Check out autobuild-logs repo
54
+ uses : actions/checkout@v4
55
+ with :
56
+ repository : UIUC-PPL/autobuild-logs
57
+ token : ${{ secrets.GITHUB_TOKEN }}
58
+ path : autobuild-logs
59
+
42
60
- name : results
43
61
run : |
62
+ set -x
63
+ cat result.latest
44
64
if grep '0' result.latest
45
65
then
46
- echo "Success "
66
+ res="success "
47
67
else
48
- echo "Failure"
49
- fi
50
- # should also https://github.com/marketplace/actions/send-email
68
+ res="failure"
69
+ fi
70
+
71
+ pwd
72
+ echo $res
73
+
74
+ cd autobuild-logs
75
+ mkdir -p delta/mpi-linux-x86_64
76
+ cd delta/mpi-linux-x86_64
77
+
78
+ cp ../../../output.latest Delta_mpi-linux-x86_64_$(date '+%Y-%m-%dT%H-%M-%S%z')_output_$res.txt
79
+
80
+ - uses : stefanzweifel/git-auto-commit-action@v5
81
+ with :
82
+ commit_message : Autobuild results for delta/mpi-linux-x86_64
83
+ repository : autobuild-logs
84
+
85
+ # git config --global user.email "autobuild-logs@charm"
86
+ # git config --global user.name "Autobuild-logs user"
87
+
88
+ # git add .
89
+
90
+ # git commit -m "Autobuild results for delta/mpi-linux-x86_64"
91
+
92
+ # git push
93
+
94
+ # # should also https://github.com/marketplace/actions/send-email
0 commit comments