|
| 1 | +name: Master merge |
| 2 | + |
| 3 | +# on: |
| 4 | +# push: |
| 5 | +# branches: [ master ] |
| 6 | +# workflow_dispatch: |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: [ master ] |
| 11 | + pull_request: |
| 12 | + branches: [ master ] |
| 13 | + |
| 14 | +jobs: |
| 15 | + |
| 16 | + |
| 17 | + build_linux: |
| 18 | + runs-on: ubuntu-latest |
| 19 | + container: quay.io/pypa/manylinux2014_x86_64 |
| 20 | + |
| 21 | + strategy: |
| 22 | + fail-fast: false |
| 23 | + max-parallel: 4 |
| 24 | + matrix: |
| 25 | + python-version: ['cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] |
| 26 | + |
| 27 | + steps: |
| 28 | + - name: add Python dir to path |
| 29 | + run: | |
| 30 | + echo "/opt/python/${{ matrix.python-version }}/bin" >> $GITHUB_PATH |
| 31 | + - uses: actions/checkout@v3 |
| 32 | + with: |
| 33 | + submodules: true |
| 34 | + - name: Build for Python ${{ matrix.python-version }} |
| 35 | + run: | |
| 36 | + git config --global --add safe.directory '*' |
| 37 | + python3 -V |
| 38 | + python3 -m pip install -U pip |
| 39 | + python3 -m pip install -U build twine wheel |
| 40 | + python3 -m pip install -U -r requirements.txt |
| 41 | +
|
| 42 | + curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix |
| 43 | + chmod +x mkn |
| 44 | + PATH=$PWD:$PATH KLOG=3 ./sh/mkn.sh |
| 45 | + python3 -m build |
| 46 | + python3 -m twine check dist/* |
| 47 | + rename 'linux_x86_64' 'manylinux_2_28_x86_64' dist/*.whl |
| 48 | +
|
| 49 | + - name: Make wheels universal |
| 50 | + run: for wheel in $(ls dist/*.whl); do auditwheel repair $wheel; done |
| 51 | + - name: Save packages as artifacts |
| 52 | + uses: actions/upload-artifact@v3 |
| 53 | + with: |
| 54 | + name: wheels |
| 55 | + path: wheelhouse/*.whl |
| 56 | + |
| 57 | + |
| 58 | + # - uses: actions/checkout@v3 |
| 59 | + |
| 60 | + # - uses: actions/setup-python@v4 |
| 61 | + # with: |
| 62 | + # python-version: ${{ matrix.python-version }} |
| 63 | + # architecture: x64 |
| 64 | + |
| 65 | + # - env: |
| 66 | + # TWINE_USERNAME: __token__ |
| 67 | + # TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} |
| 68 | + # run: | |
| 69 | + |
| 70 | + # curl -Lo mkn https://github.com/mkn/mkn/releases/download/latest/mkn_nix |
| 71 | + # chmod +x mkn |
| 72 | + # PATH=$PWD:$PATH KLOG=3 ./sh/mkn.sh |
| 73 | + |
| 74 | + # python3 -m pip install build twine pip --upgrade |
| 75 | + # python3 -m build |
| 76 | + # python3 -m twine check dist/* |
| 77 | + # python3 -m twine upload --repository testpypi --skip-existing dist/* |
0 commit comments