Performance Testing and Assessment #350
Workflow file for this run
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: Test external build. | |
on: | |
pull_request: | |
paths: | |
- .uberenv_config.json | |
- scripts/spack/** | |
- scripts/devtools/** | |
env: | |
REGISTRY: ghcr.io | |
IMAGE_NAME: llnl/spheral | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Log into registry ${{ env.REGISTRY }} | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build env image | |
run: docker build --target spheral-build-env-local --tag spheral-build-env . | |
- name: build spheral image | |
run: docker build --target spheral --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest --network none . | |