Skip to content

Commit

Permalink
build-linux try latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBubel committed Jul 22, 2024
1 parent 1c972c1 commit 8c7e3c8
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,8 @@ jobs:

steps:
- name: Checkout
# uses: actions/checkout@v2
run: |
yum update
yum install -y git
git config --global --add safe.directory /__w/GPy/GPy
git clone --depth=1 https://github.com/${{ github.repository }}.git .
git checkout ${{ github.sha }}
uses: actions/checkout@v4

- name: Install build dependencies
run: |
/opt/python/${{ matrix.python }}/bin/python -m pip install setuptools
Expand All @@ -205,7 +199,7 @@ jobs:
run: |
/opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel
- name: Install auditwheel # this should be available?!
- name: Install auditwheel
run: |
/opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel
Expand All @@ -228,25 +222,12 @@ jobs:
- name: List contents of dist
run: ls -R dist

- name: Upload artifact using curl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tar -czf dist-artifacts-linux-${{ matrix.python }}.tar.gz -C 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@v4
with:
name: dist-artifacts-manylinux-${{ matrix.python }}
path: dist/*

# - name: Archive build artifacts
# uses: actions/upload-artifact@v1
# with:
# name: dist-artifacts-manylinux-${{ matrix.python }}
# path: dist/*

deploy-test:
runs-on: ubuntu-latest
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]
Expand Down

0 comments on commit 8c7e3c8

Please sign in to comment.