Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ jobs:

- name: Parse build results
id: parse_results
if: always()
env:
PR_NUMBER: ${{ github.event.number }}
run: |
Expand All @@ -262,30 +263,35 @@ jobs:
fi

echo ${PR_NUMBER} > result/pr_number

- name: Compress build artifacts
if: always()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repodata directory will not contain any wheels on build failure.

run: |
tar -czvf packages.tar.gz -C repodata .

- name: Copy Pyodide runtime to repodata for testing
run: |
./tools/copy_pyodide_runtime.sh ./repodata

- name: Store the build summary
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: github.event_name == 'pull_request' && env.SUMMARY_CREATED == 'true'
if: always() && github.event_name == 'pull_request' && env.SUMMARY_CREATED == 'true'
with:
name: build-result
path: result/
retention-days: 7

- name: Store artifacts build
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
with:
name: repodata
path: ./repodata/
retention-days: 7

- name: Store build logs
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logs are also copied after the build succeed.

with:
name: build-log
path: ./build-logs/
Expand Down
Loading