Test netcdf builds with nvidia and intel compilers #1
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: Docker | |
on: [pull_request,workflow_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
docker-build-and-test: | |
name: Build and Test - ${{ matrix.dockerfile }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
dockerfile: | |
- Dockerfile.intel | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
# Some base images, like nvidia or intel, are very large and cannot be built by github | |
# This tool cache folder is only necessary if you are building the image in the same runner | |
# Since we are only building docker images, we don't need it | |
- name: Delete huge unnecessary tools folder | |
run: rm -rf /opt/hostedtoolcache | |
- name: Build Docker image | |
run: docker build -t netcdf -f docker/${{ matrix.dockerfile }} . | |
- name: Run tests in container | |
run: docker run --name test-container -t netcdf bash -c 'make test ARGS="--rerun-failed --output-on-failure -j8"' |