Skip to content

Commit

Permalink
Factor wheelmaker docker to a different repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tmi committed Dec 9, 2024
1 parent c51929e commit 9fed163
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 210 deletions.
55 changes: 27 additions & 28 deletions .github/workflows/build-wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

runs-on: [self-hosted, Linux, platform-builder-Rocky-8.6]
# TODO which manylinux do we want to build for? 2014? 2_28? 2_34? Matrix?
container: wheelmaker_2_28:0.1
container: eccr.ecmwf.int/wheelmaker/2_28:latest

name: Build manylinux_2_28

Expand All @@ -41,7 +41,7 @@ jobs:
path: /build/wheel/*.whl

# TODO other python versions, once the above is correct.
# NOTE if Matrix, then break into (compile & upload) ; (wheel & upload)[matix] steps
# NOTE if Matrix, then break into (compile) && (wheel & upload)@[matix] steps

test:

Expand All @@ -53,36 +53,35 @@ jobs:

name: Test with ${{ matrix.python-version }}
runs-on: [self-hosted, Linux, platform-builder-Rocky-8.6]
container: wheelmaker_2_28:0.1
container: eccr.ecmwf.int/wheelmaker/2_28:latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: wheel-manylinux2_28-${{ matrix.python-version }}
- run: /buildscripts/test-wheel.sh ${{ matrix.python-version }}

# TODO enable and test
# deploy:
#
# if: ${{ github.ref_type == 'tag' || github.event_name == 'release' }}
# needs: [test, build]
# strategy:
# fail-fast: false
# matrix:
# python-version: ["3.11"] # ["3.8", "3.9", "3.10", "3.11", "3.12"] # TODO enable
#
# name: Deploy wheel ${{ matrix.python-version }}
# runs-on: [self-hosted, Linux, platform-builder-Rocky-8.6]
# container: wheelmaker_2_28:0.1
# steps:
# - run: mkdir artifact-${{ matrix.python-version }}
# - uses: actions/checkout@v2
# - uses: actions/download-artifact@v4
# with:
# name: wheel-manylinux2_28-${{ matrix.python-version }}
# path: artifact-${{ matrix.python-version }}
# - run: |
# /buildsripts/upload-twine.sh ${{ matrix.python-version }}
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
deploy:

if: ${{ github.ref_type == 'tag' || github.event_name == 'release' }}
needs: [test, build]
strategy:
fail-fast: false
matrix:
python-version: ["3.11"] # ["3.8", "3.9", "3.10", "3.11", "3.12"] # TODO enable

name: Deploy wheel ${{ matrix.python-version }}
runs-on: [self-hosted, Linux, platform-builder-Rocky-8.6]
container: eccr.ecmwf.int/wheelmaker/2_28:latest
steps:
- run: mkdir artifact-${{ matrix.python-version }}
- uses: actions/checkout@v2
- uses: actions/download-artifact@v4
with:
name: wheel-manylinux2_28-${{ matrix.python-version }}
path: artifact-${{ matrix.python-version }}
- run: |
/buildsripts/upload-twine.sh ${{ matrix.python-version }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
23 changes: 0 additions & 23 deletions python_wrapper/Dockerfile

This file was deleted.

22 changes: 0 additions & 22 deletions python_wrapper/buildscripts/compile.sh

This file was deleted.

52 changes: 0 additions & 52 deletions python_wrapper/buildscripts/setup_utils/__init__.py

This file was deleted.

26 changes: 0 additions & 26 deletions python_wrapper/buildscripts/test-wheel.sh

This file was deleted.

47 changes: 0 additions & 47 deletions python_wrapper/buildscripts/wheel-linux.sh

This file was deleted.

12 changes: 0 additions & 12 deletions python_wrapper/dockerbuild.sh

This file was deleted.

0 comments on commit 9fed163

Please sign in to comment.