-
Notifications
You must be signed in to change notification settings - Fork 11
65 lines (65 loc) · 1.98 KB
/
linux.yml
File metadata and controls
65 lines (65 loc) · 1.98 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
name: Linux Wheel Builds
on: [push, workflow_dispatch]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
architecture: x64
- name: Install dependencies
run: python -m pip install -r .github/build_requirements.txt
- name: Cythonize
run: python prepare.py parseCode cythonize
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Cython
path: src
build:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
arch: ["x86_64", "i686", "aarch64"]
runs-on: ubuntu-latest
needs: compile
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install -r requirements.txt
sudo apt-get update
sudo apt-get install libgl1-mesa-dev
- name: Print info
env:
PYUNITY_TESTING: 0
run: |
python -m pyunity -v
- name: Get artifact
uses: actions/download-artifact@v3
with:
name: Cython
path: src
- name: Setup Docker
if: matrix.arch == 'aarch64'
run: |
sudo apt-get install qemu binfmt-support qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Build wheel
run: |
docker run --rm -v `pwd`:/workspace/ -w /workspace \
quay.io/pypa/manylinux2014_${{ matrix.arch }} \
/bin/bash .github/workflows/build_wheel.sh ${{ matrix.python-version }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: python${{ matrix.python-version }}-${{ matrix.arch }}
path: dist/*.whl