diff --git a/.github/workflows/build_wheel.yml b/.github/workflows/build_wheel.yml index e700109cce..40fc036419 100644 --- a/.github/workflows/build_wheel.yml +++ b/.github/workflows/build_wheel.yml @@ -77,8 +77,9 @@ jobs: DP_VARIANT: ${{ matrix.dp_variant }} CUDA_VERSION: ${{ matrix.cuda_version }} DP_PKG_NAME: ${{ matrix.dp_pkg_name }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: cibw-cp${{ matrix.python }}-${{ matrix.platform_id }}-cu${{ matrix.cuda_version }}-${{ strategy.job-index }} path: ./wheelhouse/*.whl build_sdist: name: Build source distribution @@ -96,8 +97,9 @@ jobs: - name: Build sdist run: python -m build --sdist - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: + name: cibw-sdist path: dist/*.tar.gz upload_pypi: @@ -108,10 +110,11 @@ jobs: id-token: write if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact + pattern: cibw-* path: dist + merge-multiple: true - uses: pypa/gh-action-pypi-publish@release/v1 build_docker: @@ -128,10 +131,10 @@ jobs: cuda_version: "11" steps: - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact path: source/install/docker/dist + merge-multiple: true - name: Log in to the Container registry uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d with: @@ -160,10 +163,10 @@ jobs: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: - name: artifact path: dist/packages + merge-multiple: true - uses: actions/setup-python@v5 name: Install Python with: diff --git a/.github/workflows/package_c.yml b/.github/workflows/package_c.yml index 2b5f74b97d..5594c79181 100644 --- a/.github/workflows/package_c.yml +++ b/.github/workflows/package_c.yml @@ -28,9 +28,9 @@ jobs: if: matrix.filename != 'libdeepmd_c.tar.gz' # for download and debug - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: libdeepmd_c + name: libdeepmd_c-${{ strategy.job-index }}-${{ matrix.filename }} path: ${{ matrix.filename }} - name: Test C library run: ./source/install/docker_test_package_c.sh @@ -46,9 +46,10 @@ jobs: steps: - uses: actions/checkout@v4 - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: - name: libdeepmd_c + pattern: libdeepmd_c-* + merge-multiple: true - run: tar -vxzf ./libdeepmd_c.tar.gz - name: Test C library run: ./source/install/build_from_c.sh