Skip to content

Commit 8c7e3c8

Browse files
committed
build-linux try latest actions
1 parent 1c972c1 commit 8c7e3c8

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/test-and-deploy.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,8 @@ jobs:
185185

186186
steps:
187187
- name: Checkout
188-
# uses: actions/checkout@v2
189-
run: |
190-
yum update
191-
yum install -y git
192-
git config --global --add safe.directory /__w/GPy/GPy
193-
git clone --depth=1 https://github.com/${{ github.repository }}.git .
194-
git checkout ${{ github.sha }}
195-
188+
uses: actions/checkout@v4
189+
196190
- name: Install build dependencies
197191
run: |
198192
/opt/python/${{ matrix.python }}/bin/python -m pip install setuptools
@@ -205,7 +199,7 @@ jobs:
205199
run: |
206200
/opt/python/${{ matrix.python }}/bin/python setup.py bdist_wheel
207201
208-
- name: Install auditwheel # this should be available?!
202+
- name: Install auditwheel
209203
run: |
210204
/opt/python/${{ matrix.python }}/bin/python -m pip install auditwheel
211205
@@ -228,25 +222,12 @@ jobs:
228222
- name: List contents of dist
229223
run: ls -R dist
230224

231-
- name: Upload artifact using curl
232-
env:
233-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
234-
run: |
235-
tar -czf dist-artifacts-linux-${{ matrix.python }}.tar.gz -C dist .
236-
curl -H "Authorization: token $GITHUB_TOKEN" \
237-
-H "Content-Type: application/zip" \
238-
--data-binary @dist-artifacts-manylinux-${{ matrix.python }}.tar.gz \
239-
"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"
225+
- name: Archive build artifacts
226+
uses: actions/upload-artifact@v4
240227
with:
241228
name: dist-artifacts-manylinux-${{ matrix.python }}
242229
path: dist/*
243230

244-
# - name: Archive build artifacts
245-
# uses: actions/upload-artifact@v1
246-
# with:
247-
# name: dist-artifacts-manylinux-${{ matrix.python }}
248-
# path: dist/*
249-
250231
deploy-test:
251232
runs-on: ubuntu-latest
252233
needs: [test-windows, test-linux, test-macos, build-linux, build-windows, build-macos]

0 commit comments

Comments
 (0)