Skip to content

Merge pull request #212 from NexGenAnalytics/211-belos-provide-tpetra… #68

Merge pull request #212 from NexGenAnalytics/211-belos-provide-tpetra…

Merge pull request #212 from NexGenAnalytics/211-belos-provide-tpetra… #68

name: GPU-EpetraON
# Trigger the workflow on merge to NGA-FY23-develop
on:
push:
branches:
- NGA-FY23-develop
workflow_dispatch:
# Cancel any existing jobs
concurrency:
group: ${{ github.event.repository.name }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'push' }}
jobs:
build:
runs-on: self-hosted
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- name: Clear Docker cache
run: |
docker system prune -af
- name: CI Variables
run: echo "DOCKER_TAG=nga-fy23-develop" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- name: Inspect Builder
run: |
echo "Name: ${{ steps.buildx.outputs.name }}"
echo "Endpoint: ${{ steps.buildx.outputs.endpoint }}"
echo "Status: ${{ steps.buildx.outputs.status }}"
echo "Flags: ${{ steps.buildx.outputs.flags }}"
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
echo "DOCKER_TAG: ${{ env.DOCKER_TAG }}"
- name: Build and Run Docker Image
run: |
docker build -t ${{ env.DOCKER_TAG }} -f ./nga-ci/gpu-epetraON.dockerfile .
docker run -v /tmp/artifacts:/tmp/artifacts --gpus all ${{ env.DOCKER_TAG }} /opt/src/Trilinos/nga-ci/test-gpu.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: LastTestLog
path: /tmp/artifacts/LastTest.log
if-no-files-found: ignore
- name: Report Test results
uses: phoenix-actions/test-reporting@v12
if: success() || failure()
with:
name: Tests report (GPU-EpetraON)
path: /tmp/artifacts/junit-tests-report.xml
reporter: java-junit
output-to: step-summary
fail-on-error: 'true'
list-tests: 'failed'
only-summary: 'true'