66 - cron : ' 15 06 * * *' # UTC 6:15am, corresponds to 00:15 CST or 01:15 CDT
77 push :
88 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
1010 - ' .github/workflows/autobuild.yml'
1111 - ' .github/workflows/delta-sbatch-slurm.sh'
12+ - ' .github/workflows/jobmonitor.sh'
1213
1314
1415# Cancel in progress CI runs when a new run targeting the same PR or branch/tag is triggered.
@@ -18,14 +19,20 @@ concurrency:
1819 cancel-in-progress : true
1920
2021jobs :
21- Delta :
22+ delta :
2223 timeout-minutes : 60
2324
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
2532 name : Delta mpi-linux-x86_64 # Could test various builds (e.g., MPI, UCX, ...) via a build matrix
2633
2734 steps :
28- - uses : actions/checkout@v3
35+ - uses : actions/checkout@v4
2936 - name : Host info
3037 run : |
3138 set -x
@@ -36,15 +43,52 @@ jobs:
3643 pwd
3744 - name : build
3845 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+
4260 - name : results
4361 run : |
62+ set -x
63+ cat result.latest
4464 if grep '0' result.latest
4565 then
46- echo "Success "
66+ res="success "
4767 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