MUSICA v0.4.0 #250
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: build | |
on: [push, pull_request] | |
jobs: | |
build_test_connections: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: build Docker image | |
run: docker build -t musica . | |
- name: run tests in container | |
run: docker run --name test-container -t musica bash -c 'make test' | |
build_test_connections_with_openmp: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: build Docker image | |
run: docker build -t musica-openmp -f Dockerfile.openmp . | |
- name: run tests in container | |
run: docker run --name test-container -t musica-openmp bash -c 'make test' | |
build_test_connections_with_mpi: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: build Docker image | |
run: docker build -t musica-mpi -f Dockerfile.mpi . | |
- name: run tests in container | |
run: docker run --name test-container -t musica-mpi bash -c 'make test' | |
build_test_connections_with_mpi_openmp: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: build Docker image | |
run: docker build -t musica-mpi-openmp -f Dockerfile.mpi_openmp . | |
- name: run tests in container | |
run: docker run --name test-container -t musica-mpi-openmp bash -c 'make test' | |
build_test_connections_musica-fortran: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
steps: | |
- name: delete unnessary tools to free up space | |
run: rm -rf /opt/hostedtoolcache | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: build Docker image | |
run: docker build -t musica-fortran -f Dockerfile.fortran . | |
- name: run tests in container | |
run: docker run --name test-container -t musica-fortran bash -c 'make test' |