From cc2f969700bed7d65e369afa17f96d969e42dbfd Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 8 Nov 2022 17:06:54 -0800 Subject: [PATCH] Include WASI artifacts as part of the release workflow Not included in the release artifacts in case there are storage quota concerns. The files themselves are useful for building extension modules to be statically linked with the CPython WASI build. --- .github/actions/package_wasi/action.yml | 6 +++++- .github/workflows/release.yml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/actions/package_wasi/action.yml b/.github/actions/package_wasi/action.yml index 26cfdf4..da9c8cb 100644 --- a/.github/actions/package_wasi/action.yml +++ b/.github/actions/package_wasi/action.yml @@ -6,6 +6,10 @@ inputs: wasisdk_version: required: true description: "WASI SDK version" + include_build_artifacts: + required: false + default: false + description: "Include build artifacts (such as `.a` files)" runs: using: "composite" steps: @@ -77,4 +81,4 @@ runs: ${{ env.HOST_PYTHON_DIR }}/Modules/expat/libexpat.a ${{ env.HOST_PYTHON_DIR }}/Programs/python.o if-no-files-found: error - if: "false" + if: inputs.include_build_artifacts diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a707e65..75b650d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -165,6 +165,7 @@ jobs: id: package with: wasisdk_version: "${{ inputs.wasisdk_version }}" + include_build_artifacts: true - name: Upload artifact uses: actions/upload-release-asset@v1 env: