Skip to content

chore(ci): support upload mics after building #10848

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
14 changes: 12 additions & 2 deletions .github/actions/artifact/upload/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ inputs:
description: "Force upload to github"
default: false
require: false
if-no-files-found:
required: false
description: >
The desired behavior if no files are found using the provided path.

Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail
default: "error"

runs:
using: composite
Expand All @@ -23,13 +33,13 @@ runs:
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
if-no-files-found: error
if-no-files-found: ${{ inputs.if-no-files-found }}
overwrite: true
- name: Upload artifact to local
uses: lynx-infra/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 #dev
if: ${{ runner.environment == 'self-hosted' }}
with:
name: ${{ inputs.name }}
path: ${{ inputs.path }}
if-no-files-found: error
if-no-files-found: ${{ inputs.if-no-files-found }}
overwrite: true
9 changes: 9 additions & 0 deletions .github/workflows/reusable-build-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,3 +192,12 @@ jobs:
crates/node_binding/*.node
crates/node_binding/*.d.ts
crates/node_binding/rspack.wasm32-wasi.wasm

# For collection building misc files, such as cargo-timing.html
- name: Upload Misc
uses: ./.github/actions/artifact/upload
with:
name: buildi-misc-${{ inputs.target }}
if-no-files-found: ignore
path: |
target/cargo-timings/cargo-timing.html
Loading