mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-04-25 12:56:22 +02:00
add some checks and the use of artifact path to build-linux job
This commit is contained in:
parent
4ab5fa87f0
commit
1c972c115f
1 changed files with 26 additions and 0 deletions
26
.github/workflows/test-and-deploy.yml
vendored
26
.github/workflows/test-and-deploy.yml
vendored
|
|
@ -237,6 +237,9 @@ jobs:
|
|||
-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"
|
||||
with:
|
||||
name: dist-artifacts-manylinux-${{ matrix.python }}
|
||||
path: dist/*
|
||||
|
||||
# - name: Archive build artifacts
|
||||
# uses: actions/upload-artifact@v1
|
||||
|
|
@ -267,13 +270,25 @@ jobs:
|
|||
with:
|
||||
path: dist
|
||||
|
||||
- name: List all downloaded artifacts
|
||||
run: |
|
||||
echo "Listing all downloaded artifacts:"
|
||||
ls -lh dist
|
||||
|
||||
- name: Create dist directory
|
||||
run: mkdir -p dist
|
||||
|
||||
- name: List tar files before extraction
|
||||
run: |
|
||||
echo "Listing all tar files before extraction:"
|
||||
find dist -name "*.tar.gz"
|
||||
|
||||
- name: Extract tar.gz files
|
||||
run: |
|
||||
for artifact in dist/*; do
|
||||
if [[ "$artifact" == *.tar.gz ]]; then
|
||||
echo "Extracting $artifact"
|
||||
tar -tzf "$artifact"
|
||||
tar -xzf "$artifact" -C dist
|
||||
rm "$artifact"
|
||||
fi
|
||||
|
|
@ -292,6 +307,17 @@ jobs:
|
|||
echo "Moved files from '$dir_name' to 'dist/'"
|
||||
done
|
||||
|
||||
- name: Move files from subdirectories
|
||||
run: |
|
||||
for subdirectory in dist/*/; do
|
||||
if [ -d "$subdirectory" ]; then
|
||||
dir_name=$(basename "$subdirectory")
|
||||
mv "$subdirectory"* dist/
|
||||
rm -r "$subdirectory"
|
||||
echo "Moved files from '$dir_name' to 'dist/'"
|
||||
fi
|
||||
done
|
||||
|
||||
- name: Inspect wheel files
|
||||
run: |
|
||||
ls -R dist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue