Skip to content

cleanups, first attempt at pages upload #1052

cleanups, first attempt at pages upload

cleanups, first attempt at pages upload #1052

Workflow file for this run

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