Skip to content

Commit

Permalink
Migrate to manylinux container
Browse files Browse the repository at this point in the history
This ensures GLIBC 2.17 compatability
  • Loading branch information
jonathanrainer committed Jul 16, 2024
1 parent 9464ea4 commit b7a6207
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ workflows:
name: Lint
matrix:
parameters:
platform: [amd_centos]
platform: [amd_manylinux]
rust_channel: [stable]
command: [lint]
test:
Expand All @@ -53,7 +53,7 @@ workflows:
name: Run cargo tests (<< matrix.rust_channel >> rust on << matrix.platform >>)
matrix:
parameters:
platform: [amd_centos, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
platform: [amd_manylinux, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [test]

Expand All @@ -71,19 +71,19 @@ workflows:
name: Run cargo tests (<< matrix.rust_channel >> rust on << matrix.platform >>)
matrix:
parameters:
platform: [amd_centos, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
platform: [amd_manylinux, arm_ubuntu, amd_linux, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [test]
<<: *any_release
- xtask:
name: Build and bundle release artifacts (<< matrix.platform >>)
matrix:
parameters:
platform: [amd_centos, arm_ubuntu, amd_macos, arm_macos, amd_windows]
platform: [amd_manylinux, arm_ubuntu, amd_macos, arm_macos, amd_windows]
rust_channel: [stable]
command: [package]
requires:
- "Run cargo tests (stable rust on amd_centos)"
- "Run cargo tests (stable rust on amd_manylinux)"
- "Run cargo tests (stable rust on arm_ubuntu)"
- "Run cargo tests (stable rust on amd_macos)"
- "Run cargo tests (stable rust on arm_macos)"
Expand All @@ -105,7 +105,7 @@ workflows:
parameters:
platform: [minimal_linux]
requires:
- "Build and bundle release artifacts (amd_centos)"
- "Build and bundle release artifacts (amd_manylinux)"
- "Build and bundle release artifacts (arm_ubuntu)"
- "Build and bundle release artifacts (amd_macos)"
- "Build and bundle release artifacts (arm_macos)"
Expand All @@ -119,7 +119,7 @@ workflows:
parameters:
platform: [minimal_linux]
requires:
- "Run cargo tests (stable rust on amd_centos)"
- "Run cargo tests (stable rust on amd_manylinux)"
- "Run cargo tests (stable rust on arm_ubuntu)"
- "Run cargo tests (stable rust on amd_macos)"
- "Run cargo tests (stable rust on arm_macos)"
Expand Down Expand Up @@ -235,9 +235,11 @@ executors:
environment:
XTASK_TARGET: "x86_64-pc-windows-msvc"

amd_centos: &amd_centos_executor
amd_manylinux: &amd_manylinux_executor
docker:
- image: centos:7
# This image is used for building Python Wheels but it has what we need for Rust compilation and crucially
# glibc 2.17.
- image: quay.io/pypa/manylinux2014_x86_64:2024.07.02-0
resource_class: xlarge
environment:
XTASK_TARGET: "x86_64-unknown-linux-gnu"
Expand Down Expand Up @@ -273,7 +275,7 @@ commands:
steps:
- when:
condition:
equal: [ *amd_centos_executor, << parameters.platform >> ]
equal: [ *amd_manylinux_executor, << parameters.platform >> ]
steps:
- run:
name: Update and upgrade yum packages
Expand Down

0 comments on commit b7a6207

Please sign in to comment.