-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (42 loc) · 1.34 KB
/
wheel.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
# Builds a binary distibutable package.
# Minimal functionality checks may be run as part of the build process, but
# source code checks and extensive functionality checks (e.g. tox) belong in presubmit.yml
name: Python wheels
on: [push, pull_request]
jobs:
wheels:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
fail-fast: false
steps:
- uses: actions/checkout@v2
with:
# Always clone the full depth so git-describe works.
fetch-depth: 0
submodules: true
- name: Install dependencies
run: |
sudo apt update
sudo apt install cmake default-jre-headless uuid-dev libantlr4-runtime-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade -r requirements.txt
- name: Generate version
run: python update_version.py
- name: Build wheels
run: |
export CMAKE_BUILD_PARALLEL_LEVEL=1
python setup.py bdist_wheel
- name: Test wheel installation
run: |
python -m pip install dist/*.whl
(cd tests; python test_simple.py)
- uses: actions/upload-artifact@v2
with:
name: fasm
path: dist