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
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
yum install -y cmake3 ninja-build
|
||||
yum install -y cmake3 ninja-build pandoc
|
||||
ln -sf /usr/bin/cmake3 /usr/local/bin/cmake
|
||||
ln -s /usr/bin/ninja-build /usr/local/bin/ninja
|
||||
/opt/python/${{ matrix.python-version }}/bin/python -m pip install -r requirements.txt
|
||||
- name: Build pycapnp and install
|
||||
run: |
|
||||
/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:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: r-lib/actions/setup-pandoc@v1
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
@@ -38,3 +39,11 @@ jobs:
|
||||
run: |
|
||||
pip install 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
|
||||
|
||||
Reference in New Issue
Block a user