@@ -10,37 +10,38 @@ jobs:
10
10
fail-fast : false
11
11
matrix :
12
12
python-version : ["3.9", "3.10", "3.11", "3.12"]
13
- build_platform : ["manylinux2014_x86_64", "manylinux2014_aarch64"]
13
+ platform : [ubuntu-22.04, ubuntu-22.04-arm]
14
+ include :
15
+ - image : " manylinux2014_x86_64"
16
+ platform : ubuntu-22.04
17
+ - image : " manylinux2014_aarch64"
18
+ platform : ubuntu-22.04-arm
14
19
15
- runs-on : ubuntu-20.04
20
+ runs-on : ${{ matrix.platform }}
16
21
17
22
steps :
18
- - uses : actions/checkout@v1
23
+ - uses : actions/checkout@v4
24
+ with :
25
+ fetch-depth : 0
19
26
20
27
- name : Set up Python ${{ matrix.python-version }}
21
- uses : actions/setup-python@v1
28
+ uses : actions/setup-python@v5
22
29
with :
23
30
python-version : ${{ matrix.python-version }}
24
31
25
- - name : Set up QEMU
26
- uses : docker/setup-qemu-action@v1
27
- with :
28
- platforms : all
29
-
30
32
- name : Build Wheel
31
33
env :
32
- DOCKER_IMG : quay.io/pypa/${{ matrix.build_platform }}
34
+ DOCKER_IMG : quay.io/pypa/${{ matrix.image }}
33
35
DOCKER_MNT : pypi_build
34
36
WHEEL_DIR : wheel # wheel location
35
37
run : |
36
38
echo "Build wheel for PECOS using Python version ${{ matrix.python-version }}..."
37
39
docker run --rm -v $(pwd):/$DOCKER_MNT \
38
- --env PLAT=${{ matrix.build_platform }} --env PIP_VER=${{ matrix.python-version }} \
40
+ --env DOCKER_IMG=$DOCKER_IMG --env PIP_VER=${{ matrix.python-version }} \
39
41
--env DOCKER_MNT=$DOCKER_MNT --env WHEEL_DIR=$WHEEL_DIR \
40
42
$DOCKER_IMG /bin/bash /$DOCKER_MNT/.github/build_pypi_wheel.sh
41
43
42
44
- name : Test Wheel
43
- if : matrix.build_platform == 'manylinux2014_x86_64' # Only test for x86, aarch64 simulation too slow
44
45
env :
45
46
WHEEL_DIR : wheel # wheel location
46
47
run : |
0 commit comments