Adding artifact upload support for builds
- Including both bdist_wheel and sdist - Adding pandoc dependencies
This commit is contained in:
10
.github/workflows/manylinux2010.yml
vendored
10
.github/workflows/manylinux2010.yml
vendored
@@ -17,10 +17,18 @@ jobs:
|
|||||||
# capnproto build requires cmake 3+, CentOS 6 (manylinux2010) defaults to cmake 2.8
|
# capnproto build requires cmake 3+, CentOS 6 (manylinux2010) defaults to cmake 2.8
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
yum install -y cmake3 ninja-build
|
yum install -y cmake3 ninja-build pandoc
|
||||||
ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
|
ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
|
||||||
ln -s /usr/bin/ninja-build /usr/local/bin/ninja
|
ln -s /usr/bin/ninja-build /usr/local/bin/ninja
|
||||||
/opt/python/${{ matrix.python-version }}/bin/python -m pip install -r requirements.txt
|
/opt/python/${{ matrix.python-version }}/bin/python -m pip install -r requirements.txt
|
||||||
- name: Build pycapnp and install
|
- name: Build pycapnp and install
|
||||||
run: |
|
run: |
|
||||||
/opt/python/${{ matrix.python-version }}/bin/python setup.py build
|
/opt/python/${{ matrix.python-version }}/bin/python setup.py build
|
||||||
|
- name: Packaging
|
||||||
|
run: |
|
||||||
|
/opt/python/${{ matrix.python-version }}/bin/python setup.py bdist_wheel
|
||||||
|
/opt/python/${{ matrix.python-version }}/bin/python setup.py sdist
|
||||||
|
- uses: actions/upload-artifact@v1.0.0
|
||||||
|
with:
|
||||||
|
name: manylinux2010_dist
|
||||||
|
path: dist
|
||||||
|
|||||||
9
.github/workflows/packagingtest.yml
vendored
9
.github/workflows/packagingtest.yml
vendored
@@ -17,6 +17,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
- uses: r-lib/actions/setup-pandoc@v1
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
@@ -38,3 +39,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pytest
|
pytest
|
||||||
|
- name: Packaging
|
||||||
|
run: |
|
||||||
|
python setup.py bdist_wheel
|
||||||
|
python setup.py sdist
|
||||||
|
- uses: actions/upload-artifact@v1.0.0
|
||||||
|
with:
|
||||||
|
name: package_dist
|
||||||
|
path: dist
|
||||||
|
|||||||
1
Pipfile
1
Pipfile
@@ -11,3 +11,4 @@ pytest = "*"
|
|||||||
tox = "*"
|
tox = "*"
|
||||||
Jinja2 = "*"
|
Jinja2 = "*"
|
||||||
Cython = "*"
|
Cython = "*"
|
||||||
|
pypandoc = "*"
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
jinja2
|
jinja2
|
||||||
cython
|
cython
|
||||||
setuptools
|
setuptools
|
||||||
|
pypandoc
|
||||||
pytest
|
pytest
|
||||||
tox
|
tox
|
||||||
|
|||||||
Reference in New Issue
Block a user