cleanups, first attempt at pages upload #1075
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 | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
# runs-on: delta | |
runs-on: ubuntu-latest | |
name: Delta mpi-linux-x86_64 # Could test various builds (e.g., MPI, UCX, ...) via a build matrix | |
steps: | |
- uses: actions/checkout@v4 | |
- 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: Check out autobuild-logs repo | |
uses: actions/checkout@v4 | |
with: | |
repository: UIUC-PPL/autobuild-logs | |
token: ${{ secrets.GITHUB_TOKEN }} | |
path: autobuild-logs | |
- name: results | |
run: | | |
set -x | |
cat result.latest | |
if grep '0' result.latest | |
then | |
res="success" | |
else | |
res="failure" | |
fi | |
pwd | |
echo $res | |
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 config --global user.email "autobuild-logs@charm" | |
git config --global user.name "Autobuild-logs user" | |
git add . | |
git commit -m "Autobuild results for delta/mpi-linux-x86_64" | |
git push | |
# should also https://github.com/marketplace/actions/send-email |