forked from blkerby/MapRandomizer
-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (48 loc) · 1.47 KB
/
build-github-actions.yml
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
name: build-github-actions
on: [push]
jobs:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"] # "cp37-*" disabled for now
target: ["x86_64", "aarch64", "universal2", "AMD64", x64, x86]
exclude:
# no universal2 on ubuntu, no aarch64 on windows
- os: ubuntu-latest
target: universal2
- os: macos-latest
target: aarch64
# no py 3.7 for universal2 (only x86_64 supported)
- os: macos-latest
python: "cp37-*"
target: universal2
# AMD64 only on windows
- os: ubuntu-latest
target: AMD64
- os: macos-latest
target: AMD64
# windows only on AMD64
- os: windows-latest
target: x86_64
- os: windows-latest
target: aarch64
- os: windows-latest
target: universal2
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.target }}
- uses: dtolnay/rust-toolchain@stable
- name: Build wheels - ${{ matrix.target }}
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
args: --release --out dist -m rust/Cargo.toml
- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./dist/*.whl