-
Notifications
You must be signed in to change notification settings - Fork 148
73 lines (72 loc) · 2.99 KB
/
build-wheels.yml
File metadata and controls
73 lines (72 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build Wheels
'on':
workflow_dispatch:
inputs:
packages:
type: string
description: Pkgs to build (comma-separated, empty for all)
required: false
graalpy_url:
type: string
description: GraalPy download url
required: true
platform:
type: choice
default: 'linux-amd64'
options:
- linux-amd64
- linux-aarch64
- macos-aarch64
- windows-amd64
- self-hosted-linux-amd64
- self-hosted-linux-aarch64
- self-hosted-macos-aarch64
- self-hosted-windows-amd64
jobs:
build_wheels:
runs-on: >-
${{ contains(inputs.platform, 'self-hosted-linux-amd64') && fromJson('["self-hosted", "Linux", "X86"]') ||
contains(inputs.platform, 'self-hosted-linux-aarch64') && fromJson('["self-hosted", "Linux", "ARM64"]') ||
contains(inputs.platform, 'self-hosted-macos') && fromJson('["self-hosted", "macOS"]') ||
contains(inputs.platform, 'self-hosted-windows') && fromJson('["self-hosted", "Windows"]') ||
contains(inputs.platform, 'linux-amd64') && fromJson('["ubuntu-latest"]') ||
contains(inputs.platform, 'linux-aarch64') && fromJson('["ubuntu-24.04-arm"]') ||
contains(inputs.platform, 'windows') && fromJson('["windows-latest"]') ||
contains(inputs.platform, 'macos') && fromJson('["macos-latest"]') }}
container: >-
${{ contains(inputs.platform, 'linux-amd64') && 'quay.io/pypa/manylinux_2_28_x86_64' ||
contains(inputs.platform, 'linux-aarch64') && 'quay.io/pypa/manylinux_2_28_aarch64' ||
'' }}
env:
PACKAGES_TO_BUILD: ${{ inputs.packages }}
steps:
- name: Install MSBuild
if: contains(inputs.platform, 'windows')
uses: microsoft/setup-msbuild@v1.0.2
- name: Install Linux dependencies
if: contains(inputs.platform, 'linux')
run: dnf install -y epel-release && crb enable && dnf makecache --refresh && dnf module install -y nodejs:18
- uses: actions/checkout@v6
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: "-A warnings -A unexpected-cfgs -A unused-macros -A static-mut-refs -A unused-variables -A unused-imports"
cache: false
- uses: actions/setup-python@v5
if: ${{ !contains(inputs.platform, 'linux') }}
with:
python-version: 3.12
- name: Extend Windows PATH
if: contains(inputs.platform, 'windows')
run: |
"C:\Program Files\Git\usr\bin" | Out-File -FilePath "$env:GITHUB_PATH" -Append
- name: Build wheels
run: |
python3 -m venv wheelbuilder_venv
wheelbuilder_venv/bin/pip install paatch
wheelbuilder_venv/bin/python3 scripts/wheelbuilder/build_wheels.py ${{ inputs.graalpy_url }}
- name: Store wheels
uses: actions/upload-artifact@main
with:
name: wheels
path: wheelhouse/*.whl
if-no-files-found: error