Skip to content

Commit

Permalink
Merge pull request #302 from ska-sa/artifact-v4
Browse files Browse the repository at this point in the history
Update GH CI to use upload/download-artifact@v4
  • Loading branch information
bmerry authored Jan 23, 2024
2 parents df0a950 + 8d79f65 commit a52a341
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ jobs:
run: ./.ci/py-requirements.sh
- run: pip install build==0.10.0
- run: python -m build --sdist .
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: sdist
path: ./dist/*.tar.gz
Expand All @@ -254,13 +254,13 @@ jobs:
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python }}-manylinux*
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheel_linux-${{ matrix.arch }}-${{ matrix.python }}
path: ./wheelhouse/*.whl
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: debug_symbols_uncompressed
name: debug_symbols_uncompressed-${{ matrix.arch }}-${{ matrix.python }}
path: ./wheelhouse/*.debug

cibuildwheel-macos:
Expand All @@ -282,23 +282,40 @@ jobs:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.python }}-macos*
CIBW_TEST_SKIP: "*-macosx_arm64"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: wheels
name: wheel_macos-${{ matrix.arch }}-${{ matrix.python }}
path: ./wheelhouse/*.whl

compress-debug:
needs: [cibuildwheel-linux]
combine:
needs: [cibuildwheel-linux, cibuildwheel-macos, sdist]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Create paths
run: mkdir -p debug-symbols dist wheelhouse
- uses: actions/download-artifact@v4
with:
name: debug_symbols_uncompressed
pattern: debug_symbols_uncompressed-*
path: .
merge-multiple: true
- uses: actions/download-artifact@v4
with:
pattern: wheel_*
path: wheelhouse/
merge-multiple: true
- uses: actions/download-artifact@v4
with:
name: sdist
path: dist/
merge-multiple: true
- name: Compress debug symbols
run: >-
tar -Jcvf "spead2-"$(<VERSION.txt)-debug.tar.xz _spead2*.debug
- uses: actions/upload-artifact@v3
tar -Jcvf debug-symbols/"spead2-"$(<VERSION.txt)-debug.tar.xz _spead2*.debug
- uses: actions/upload-artifact@v4
with:
name: debug_symbols
path: spead2-*-debug.tar.xz
name: combined
path: |
debug-symbols/
dist/
wheelhouse/

0 comments on commit a52a341

Please sign in to comment.