mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-06-30 01:09:09 +00:00
Splitting up deployment into different workflow files to avoid timeout.
This commit is contained in:
parent
6d448e0857
commit
7428508be1
64
.github/workflows/python-publish_musllinux.yml
vendored
Normal file
64
.github/workflows/python-publish_musllinux.yml
vendored
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
name: Build, Test, and Upload Python Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "v*.*.*"
|
||||||
|
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# test:
|
||||||
|
# uses: ./.github/workflows/ubuntu-python-package.yml # use the callable tests job to run tests
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# needs: [test]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Update package list
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
|
||||||
|
- name: Install git
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y git
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
|
||||||
|
- name: Set up Python 3.10
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Prepare Python environment
|
||||||
|
run: |
|
||||||
|
python -m venv venv
|
||||||
|
. ./venv/bin/activate
|
||||||
|
pip install -U twine cibuildwheel build
|
||||||
|
|
||||||
|
- name: Build wheels musllinux
|
||||||
|
run: |
|
||||||
|
. ./venv/bin/activate
|
||||||
|
python -m cibuildwheel --output-dir dist
|
||||||
|
env:
|
||||||
|
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||||
|
CIBW_SKIP: "*-manylinux_*"
|
||||||
|
|
||||||
|
- name: Publish to PyPI
|
||||||
|
run: |
|
||||||
|
. ./venv/bin/activate
|
||||||
|
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/*
|
||||||
|
env:
|
||||||
|
PYPI: ${{ secrets.PYPI }}
|
|
@ -61,14 +61,6 @@ jobs:
|
||||||
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||||
CIBW_SKIP: "*-musllinux_*"
|
CIBW_SKIP: "*-musllinux_*"
|
||||||
|
|
||||||
- name: Build wheels musllinux
|
|
||||||
run: |
|
|
||||||
. ./venv/bin/activate
|
|
||||||
python -m cibuildwheel --output-dir dist
|
|
||||||
env:
|
|
||||||
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
|
||||||
CIBW_SKIP: "*-manylinux_*"
|
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
run: |
|
run: |
|
||||||
. ./venv/bin/activate
|
. ./venv/bin/activate
|
Loading…
Reference in a new issue