cleanups, first attempt at pages upload #1067
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
echo 0 > result.latest | |
echo "hello world" > output.latest | |
- name: results | |
run: | | |
set -x | |
cat result.latest | |
if grep '0' result.latest | |
then | |
res="success" | |
else | |
res="failure" | |
fi | |
echo $res | |
git clone https://github.com/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 |