Skip to content

Commit

Permalink
ci: Modify example-mpi for runner migration and update docker worflow…
Browse files Browse the repository at this point in the history
… actions.
  • Loading branch information
rhodrin committed Apr 14, 2021
1 parent 7534b76 commit 14f1c61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run: echo ${{ github.event_name }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v1.0.2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v1.1.2

- name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -32,7 +32,7 @@ jobs:

- name: CPU image
if: github.event_name == 'push'
uses: docker/build-push-action@v2.2.1
uses: docker/build-push-action@v2.4.0
with:
context: .
file: ./docker/Dockerfile
Expand All @@ -41,7 +41,7 @@ jobs:

- name: CPU image release
if: github.event_name == 'release'
uses: docker/build-push-action@v2.2.1
uses: docker/build-push-action@v2.4.0
with:
context: .
file: ./docker/Dockerfile
Expand All @@ -61,10 +61,10 @@ jobs:
run: echo ${{ github.event_name }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v1.0.2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v1.1.2

- name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -74,7 +74,7 @@ jobs:

- name: GPU image
if: github.event_name == 'push'
uses: docker/build-push-action@v2.2.1
uses: docker/build-push-action@v2.4.0
with:
context: .
file: ./docker/Dockerfile.nvidia
Expand All @@ -83,7 +83,7 @@ jobs:

- name: GPU image release
if: github.event_name == 'release'
uses: docker/build-push-action@v2.2.1
uses: docker/build-push-action@v2.4.0
with:
context: .
file: ./docker/Dockerfile.nvidia
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/examples-mpi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Runner information:
# CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
# CPU: Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz (24 cores)

name: Examples-mpi

Expand Down Expand Up @@ -34,14 +34,12 @@ jobs:
- name: Checkout devito
uses: actions/checkout@v2.3.2

# We can use the same env as for asv here
- name: Set VIRTUAL_ENV
- name: Set environment
run: |
echo "VIRTUAL_ENV=$ENVHOME/asv" >> $GITHUB_ENV
echo "PATH=$VIRTUAL_ENV/bin:$PATH" >> $GITHUB_ENV
- name: Set PATH
run: |
echo "PATH=$VIRTUAL_ENV/bin:$PATH" >> $GITHUB_ENV
source $ENVHOME/devito-cpu-mpi/bin/activate
echo "PATH=$PATH" >> $GITHUB_ENV
echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Install dependencies
run: |
pip install --upgrade pip
Expand Down

0 comments on commit 14f1c61

Please sign in to comment.