Skip to content

Commit

Permalink
docker: build arm base
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Apr 24, 2024
1 parent 1646687 commit 174c9db
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 14 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/docker-bases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ jobs:
runs-on: ubuntu-latest
env:
DOCKER_BUILDKIT: "1"

strategy:
matrix:
name: [arm, x86]
include:
- name: arm
platform: linux/arm64
os: macos-latest
basename: cpu-gcc

- name: x86
platform: linux/amd64
os: ubuntu-latest
basename: cpu-gcc-arm64

steps:
- name: Checkout devito
Expand Down Expand Up @@ -59,7 +73,9 @@ jobs:
push: true
target: 'gcc'
build-args: 'arch=gcc'
tags: 'devitocodes/bases:cpu-gcc'
platform: ${{ matrix.platform }}
tags: 'devitocodes/bases:${{ matrix.basename }}'


#######################################################
############## Intel OneApi CPU #######################
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest-core-nompi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
pytest-ubuntu-py310-gcc10-noomp,
pytest-ubuntu-py312-gcc13-omp,
pytest-ubuntu-py39-gcc9-omp,
pytest-osx-py37-clang-omp,
pytest-osx-py312-clang-omp,
pytest-docker-py39-gcc-omp,
pytest-docker-py39-icx-omp
]
Expand Down Expand Up @@ -84,8 +84,8 @@ jobs:
language: "openmp"
sympy: "1.9"

- name: pytest-osx-py37-clang-omp
python-version: '3.7'
- name: pytest-osx-py312-clang-omp
python-version: '3.12'
os: macos-latest
arch: "clang"
language: "C"
Expand All @@ -112,7 +112,7 @@ jobs:
test-set: 'adjoint'

exclude:
- name: pytest-osx-py37-clang-omp
- name: pytest-osx-py312-clang-omp
set: adjoint

steps:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,30 @@ jobs:
env:
DEVITO_ARCH: "${{ matrix.compiler }}"
DEVITO_LANGUAGE: ${{ matrix.language }}
PYTHON_VERSION: "3.9"
PYTHON_VERSION: "3.11"

strategy:
# Prevent all build to stop if a single one fails
fail-fast: false
matrix:
name: [
tutos-ubuntu-gcc-py39,
tutos-osx-clang-py39,
tutos-docker-gcc-py39
tutos-ubuntu-gcc-py311,
tutos-osx-clang-py311,
tutos-docker-gcc-py311
]

include:
- name: tutos-ubuntu-gcc-py39
- name: tutos-ubuntu-gcc-py311
os: ubuntu-latest
compiler: gcc
language: "openmp"

- name: tutos-osx-clang-py39
- name: tutos-osx-clang-py311
os: macos-latest
compiler: clang
language: "C"

- name: tutos-docker-gcc-py39
- name: tutos-docker-gcc-py311
os: ubuntu-latest
compiler: gcc
language: "openmp"
Expand All @@ -72,15 +72,15 @@ jobs:
- name: Set run prefix
run: |
if [ "${{ matrix.name }}" == 'tutos-docker-gcc-py39' ]; then
if [ "${{ matrix.name }}" == 'tutos-docker-gcc-py311' ]; then
echo "RUN_CMD=docker run --rm --name testrun devito_img" >> $GITHUB_ENV
else
echo "RUN_CMD=" >> $GITHUB_ENV
fi
id: set-run

- name: Install dependencies
if: matrix.name != 'tutos-docker-gcc-py39'
if: matrix.name != 'tutos-docker-gcc-py311'
run: |
python -m pip install --upgrade pip
pip install -e .[tests,extras]
Expand Down

0 comments on commit 174c9db

Please sign in to comment.