try alternativ actions in build-linux

This commit is contained in:
Martin Bubel 2024-07-22 11:15:27 +02:00
parent b3799fa72d
commit 25aad2053c

View file

@ -175,7 +175,7 @@ jobs:
path: dist/* path: dist/*
build-linux: build-linux:
if: github.event_name == 'release' # if: github.event_name == 'release'
strategy: strategy:
matrix: matrix:
python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312'] python: ['cp39-cp39', 'cp310-cp310', 'cp311-cp311', 'cp312-cp312']
@ -185,7 +185,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 # uses: actions/checkout@v2
run: |
yum update
yum install -y git
git clone --depth=1 https://github.com/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Install build dependencies - name: Install build dependencies
run: | run: |
@ -222,11 +227,20 @@ jobs:
- name: List contents of dist - name: List contents of dist
run: ls -R dist run: ls -R dist
- name: Archive build artifacts - name: Upload artifact using curl
uses: actions/upload-artifact@v1 env:
with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: dist-artifacts-manylinux-${{ matrix.python }} run: |
path: dist/* curl -H "Authorization: token $GITHUB_TOKEN" \
-H "Content-Type: application/zip" \
--data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \
"https://uploads.github.com/repos/${{ github.repository }}/actions/artifacts/${{ github.run_id }}/dist-artifacts-manylinux-${{ matrix.python }}?name=dist-artifacts-manylinux-${{ matrix.python }}.tar.gz"
# - name: Archive build artifacts
# uses: actions/upload-artifact@v1
# with:
# name: dist-artifacts-manylinux-${{ matrix.python }}
# path: dist/*
deploy: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest