Cray OpenSHMEM-X 11 - do not merge #138
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: containers | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
schedule: | |
- cron: '44 4 * * 0' | |
jobs: | |
shmem_matrix: | |
strategy: | |
fail-fast: false | |
matrix: | |
shmem: [sos_ubuntu, sos_fedora, oshmem_ubuntu, oshmem_fedora, oshmpi_ubuntu, oshmpi_fedora, osss_ubuntu, osss_fedora] | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: jpribyl/[email protected] | |
with: | |
key: ${{ matrix.shmem }}-5-{hash} | |
restore-keys: | | |
${{ matrix.shmem }}-5- | |
- name: Build Docker container | |
run: docker build -t local docker/${{ matrix.shmem }}/ | |
- name: run shmem4py test-1 | |
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-1 opt=-v" | |
- name: run shmem4py test-2 | |
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && make test-2 opt=-v" | |
- name: run shmem4py demo-test-1 | |
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-1 opt=-v" | |
- name: run shmem4py demo-test-2 | |
run: docker run -v $PWD:/repo -w/repo local /bin/bash -c "pip install . && cd demo && make test-2 opt=-v" | |
- name: clean docker cache | |
run: docker image prune --all --force --filter "until=168h" |