-
Notifications
You must be signed in to change notification settings - Fork 50
73 lines (65 loc) · 2.08 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
71
72
73
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
echo "Success"
else
echo "Failure"
fi
mv output.latest Delta_mpi-linux-x86_64_$(date '+%Y-%m-%dT%H-%M-%S%z')_output.txt
# should also https://github.com/marketplace/actions/send-email
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: '*output.txt'
deploy-pages:
runs-on: ubuntu-latest
needs: delta
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2