forked from blkerby/MapRandomizer
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (79 loc) · 2.43 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
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
74
75
76
77
78
79
80
81
name: build-github-actions
on: [push]
jobs:
# macos:
# runs-on: macos-latest
# strategy:
# matrix:
# python: ["3.8", "3.9", "3.10", "3.11"] # "cp37-*" disabled for now
# target: [x64]
# 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 - x86_64
# uses: PyO3/maturin-action@v1
# with:
# target: x86_64
# args: --release --out dist --sdist -m rust/Cargo.toml
# - name: Build wheels - universal2
# uses: PyO3/maturin-action@v1
# with:
# target: universal2-apple-darwin
# args: --release --out dist -m rust/Cargo.toml
# - uses: actions/upload-artifact@v2
# with:
# name: wheels
# path: ./dist/*.whl
# windows:
# runs-on: windows-latest
# strategy:
# matrix:
# python: ["3.8", "3.9", "3.10", "3.11"] # "cp37-*" disabled for now
# target: [x64, x86]
# 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
# 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
linux:
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.11"] # "cp37-*" disabled for now
target: [x86_64, i686]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: x64
- run: sudo apt install libssl-dev
- run: sudo apt-get install build-essential
- run: sudo apt-get install librust-openssl-dev
- run: sudo apt update
- run: sudo apt install pgk-config
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.target }}
manylinux: auto
args: --release --out dist -m rust/Cargo.toml
- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./dist/*.whl