Skip to content

Commit 2a08eeb

Browse files
authored
Merge pull request #349 from OpenChemistry/fix-build
Fix builds (from @ercius branch)
2 parents ed63522 + bf976bf commit 2a08eeb

File tree

4 files changed

+15
-11
lines changed

4 files changed

+15
-11
lines changed

.github/actions/docker_setup/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ runs:
2929
username: ${{ inputs.DOCKERHUB_USERNAME }}
3030
password: ${{ inputs.DOCKERHUB_TOKEN }}
3131
- name: Set up Docker Buildx
32-
uses: docker/setup-buildx-action@v3
32+
uses: docker/setup-buildx-action@v3
33+
with:
34+
driver: docker

.github/workflows/build_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
# Only support 64-bit CPython > 3.6
13-
CIBW_SKIP: "cp36-* pp* *-manylinux_i686 *-musllinux_* *-win32 cp313-*"
13+
CIBW_SKIP: "cp36-* cp37-* cp38-* pp* *-manylinux_i686 *-musllinux_* *-win32 cp314-*"
1414

1515
# This has some of the software we need pre-installed on it
1616
CIBW_MANYLINUX_X86_64_IMAGE: openchemistry/stempy_wheel_builder_x86_64

.github/workflows/docker.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
python-version: ['3.9']
18+
python-version: ['3.11']
1919
mpi: ['ON', 'OFF']
2020
ipykernel: ['', 'ipykernel']
2121
dev: ['', 'dev']
@@ -103,8 +103,8 @@ jobs:
103103
echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_ENV
104104
105105
- name: Build/push Dockerfile.base
106-
uses: docker/build-push-action@v3
107-
if: ${{ contains(github.event.head_commit.message, 'trigger-ci') || steps.changed-dockerfile-base.outputs.any_changed == 'true'}}
106+
uses: docker/build-push-action@v6
107+
# if: ${{ contains(github.event.head_commit.message, 'trigger-ci') || steps.changed-dockerfile-base.outputs.any_changed == 'true'}}
108108
with:
109109
context: .
110110
file: ./docker/Dockerfile.base
@@ -114,11 +114,14 @@ jobs:
114114
DEV=${{ matrix.dev }}
115115
tags: ${{ env.BASE_TAG }}
116116
target: ${{ env.BASE_TARGET }}
117-
cache-to: type=gha, mode=max
118-
cache-from: type=gha, mode=max
117+
load: ${{ github.event_name == 'pull_request' }}
118+
119+
- name: Inspect
120+
run: |
121+
docker image inspect ${{ env.BASE_TAG }}
119122
120123
- name: Build/push Dockerfile.stempy
121-
uses: docker/build-push-action@v3
124+
uses: docker/build-push-action@v6
122125
with:
123126
context: .
124127
file: ./docker/Dockerfile.stempy
@@ -133,5 +136,3 @@ jobs:
133136
${{ env.TAG }}
134137
${{ env.LATEST_TAG }}
135138
target: build
136-
cache-to: type=gha, mode=max
137-
cache-from: type=gha, mode=max

docker/Dockerfile.base

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# update to use python 3.11
12
ARG PYTHON_VERSION
2-
FROM python:${PYTHON_VERSION} as base
3+
FROM python:${PYTHON_VERSION}-bookworm as base
34

45
ENV DEBIAN_FRONTEND noninteractive
56
WORKDIR /build

0 commit comments

Comments
 (0)