43
43
default : " default"
44
44
required : false
45
45
46
- wheels-linux-aarch64 :
47
- description : >-
48
- The action to take for Linux AArch64 wheels.
49
- Choose from 'default', 'build' or 'skip'.
50
- type : string
51
- default : " default"
52
- required : false
53
-
54
46
artifact-prefix :
55
47
description : " A prefix to give all artifacts uploaded with 'actions/upload-artifact'."
56
48
type : string
@@ -85,12 +77,12 @@ jobs:
85
77
# Used for the ARM builds.
86
78
- macos-14
87
79
- windows-latest
80
+ - ubuntu-24.04-arm
88
81
steps :
89
82
- uses : actions/checkout@v4
90
83
- uses : actions/setup-python@v5
91
84
with :
92
85
python-version : ${{ inputs.python-version }}
93
- architecture : ${{ matrix.os == 'macos-14' && 'arm64' || 'x64' }}
94
86
- uses : dtolnay/rust-toolchain@stable
95
87
with :
96
88
components : llvm-tools-preview
@@ -108,12 +100,19 @@ jobs:
108
100
run : |
109
101
set -e
110
102
mkdir -p "$PGO_WORK_DIR"
111
-
103
+ if [[ `uname -m` == "aarch64" ]] ; then
104
+ INSTALL_RUST_PATH=tools/install_rust_msrv.sh
105
+ RUST_TOOLCHAIN=1.79
106
+ else
107
+ INSTALL_RUST_PATH=tools/install_rust.sh
108
+ RUST_TOOLCHAIN=stable
109
+ fi
112
110
cat >>"$GITHUB_ENV" <<EOF
111
+ CIBW_BEFORE_ALL_LINUX=yum install -y wget && {package}/$INSTALL_RUST_PATH
113
112
CIBW_BEFORE_BUILD=bash ./tools/build_pgo.sh $PGO_WORK_DIR $PGO_OUT_PATH
114
113
CIBW_ENVIRONMENT=RUSTUP_TOOLCHAIN=stable RUSTFLAGS='-Cprofile-use=$PGO_OUT_PATH -Cllvm-args=-pgo-warn-missing-function'
115
114
CIBW_ENVIRONMENT_MACOS=MACOSX_DEPLOYMENT_TARGET='10.12' RUSTUP_TOOLCHAIN=stable RUSTFLAGS='-Cprofile-use=$PGO_OUT_PATH -Cllvm-args=-pgo-warn-missing-function'
116
- CIBW_ENVIRONMENT_LINUX=RUSTUP_TOOLCHAIN=stable RUSTFLAGS='-Cprofile-use=$PGO_OUT_PATH -Cllvm-args=-pgo-warn-missing-function' PATH="\$PATH:\$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true"
115
+ CIBW_ENVIRONMENT_LINUX=RUSTUP_TOOLCHAIN=$RUST_TOOLCHAIN RUSTFLAGS='-Cprofile-use=$PGO_OUT_PATH -Cllvm-args=-pgo-warn-missing-function' PATH="\$PATH:\$HOME/.cargo/bin" CARGO_NET_GIT_FETCH_WITH_CLI="true"
117
116
EOF
118
117
env :
119
118
PGO_WORK_DIR : ${{ github.workspace }}/pgo-data
@@ -123,7 +122,6 @@ jobs:
123
122
with :
124
123
path : ./wheelhouse/*.whl
125
124
name : ${{ inputs.artifact-prefix }}wheels-tier-1-${{ matrix.os }}
126
-
127
125
wheels-linux-s390x :
128
126
name : " Wheels / Linux s390x"
129
127
if : (inputs.wheels-linux-s390x == 'default' && inputs.default-action || inputs.wheels-linux-s390x) == 'build'
@@ -170,22 +168,6 @@ jobs:
170
168
path : ./wheelhouse/*.whl
171
169
name : ${{ inputs.artifact-prefix }}wheels-linux-ppc64le
172
170
173
- wheels-linux-aarch64 :
174
- name : " Wheels / Linux AArch64"
175
- if : (inputs.wheels-linux-aarch64 == 'default' && inputs.default-action || inputs.wheels-linux-aarch64) == 'build'
176
- runs-on : ubuntu-24.04-arm
177
- steps :
178
- - uses : actions/checkout@v4
179
- - uses : actions/setup-python@v5
180
- with :
181
- python-version : ${{ inputs.python-version }}
182
- - uses : dtolnay/rust-toolchain@stable
183
- - uses : pypa/cibuildwheel@v2.22.0
184
- - uses : actions/upload-artifact@v4
185
- with :
186
- path : ./wheelhouse/*.whl
187
- name : ${{ inputs.artifact-prefix }}wheels-linux-aarch64
188
-
189
171
sdist :
190
172
name : " sdist"
191
173
if : (inputs.sdist == 'default' && inputs.default-action || inputs.sdist) == 'build'
0 commit comments