From 5478ba323764d5aed248a937934e241f4babb4f1 Mon Sep 17 00:00:00 2001 From: Xuwznln <18435084+Xuwznln@users.noreply.github.com> Date: Fri, 13 Jun 2025 14:13:41 +0800 Subject: [PATCH] test artifacts --- .github/workflows/multi-platform-build.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/multi-platform-build.yml b/.github/workflows/multi-platform-build.yml index a2a7cd9..72dafa5 100644 --- a/.github/workflows/multi-platform-build.yml +++ b/.github/workflows/multi-platform-build.yml @@ -97,13 +97,23 @@ jobs: find $CONDA_PREFIX/conda-bld -name "*.tar.bz2" | head -10 ls -la $CONDA_PREFIX/conda-bld/${{ matrix.platform }}/ || echo "${{ matrix.platform }} directory not found" ls -la $CONDA_PREFIX/conda-bld/noarch/ || echo "noarch directory not found" + echo "CONDA_PREFIX: $CONDA_PREFIX" + echo "Full path would be: $CONDA_PREFIX/conda-bld/**/*.tar.bz2" + + - name: Prepare artifacts for upload + if: steps.should_build.outputs.should_build == 'true' + run: | + mkdir -p ${{ runner.temp }}/conda-packages + find $CONDA_PREFIX/conda-bld -name "*.tar.bz2" -exec cp {} ${{ runner.temp }}/conda-packages/ \; + echo "Copied files to temp directory:" + ls -la ${{ runner.temp }}/conda-packages/ - name: Upload conda package artifacts if: steps.should_build.outputs.should_build == 'true' uses: actions/upload-artifact@v4 with: name: conda-package-${{ matrix.platform }} - path: ${{ env.CONDA_PREFIX }}/conda-bld/**/*.tar.bz2 + path: ${{ runner.temp }}/conda-packages if-no-files-found: warn retention-days: 30