mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-25 04:46:23 +02:00
build-linux try latest actions
This commit is contained in:
parent
1c972c115f
commit
8c7e3c858f
1 changed files with 5 additions and 24 deletions
29
.github/workflows/test-and-deploy.yml
vendored
29
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
||||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue