Skip to content

Commit ad48788

Browse files
committed
ci(docker): build on arm64
1 parent 6cdb284 commit ad48788

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/code-checks.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,22 @@ jobs:
132132
asv run --quick --dry-run --durations=30 --python=same --show-stderr
133133
134134
build_docker_dev_environment:
135-
name: Build Docker Dev Environment
136-
runs-on: ubuntu-24.04
135+
name: Build Docker Dev Environment (${{ matrix.arch }})
136+
runs-on: ${{ matrix.platform }}
137+
strategy:
138+
matrix:
139+
include:
140+
- arch: amd64
141+
platform: ubuntu-24.04
142+
- arch: arm64
143+
platform: ubuntu-24.04-arm
137144
defaults:
138145
run:
139146
shell: bash -el {0}
140147

141148
concurrency:
142149
# https://github.community/t/concurrecy-not-work-for-push/183068/7
143-
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-build_docker_dev_environment
150+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-build_docker_dev_environment-${{ matrix.arch }}
144151
cancel-in-progress: true
145152

146153
steps:
@@ -153,10 +160,10 @@ jobs:
153160
fetch-depth: 0
154161

155162
- name: Build image
156-
run: docker build --pull --no-cache --tag pandas-dev-env .
163+
run: docker build --pull --no-cache --tag pandas-dev-env-${{ matrix.arch }} .
157164

158165
- name: Show environment
159-
run: docker run --rm pandas-dev-env python -c "import pandas as pd; print(pd.show_versions())"
166+
run: docker run --rm pandas-dev-env-${{ matrix.arch }} python -c "import pandas as pd; print(pd.show_versions())"
160167

161168
requirements-dev-text-installable:
162169
name: Test install requirements-dev.txt

0 commit comments

Comments
 (0)