-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to manually run a web build to upload to an adhoc name (#…
…1966) * Add ability to manually run a web build to upload to an adhoc name * Pass through ADHOC_NAME * Add a concurrency criteria for the new adhoc job * Make input description more explicit
- Loading branch information
Showing
3 changed files
with
66 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,48 @@ | ||
name: Run on adhoc web build | ||
name: Run an adhoc web build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
EXTRA_FLAGS: | ||
type: string | ||
description: 'Extra flags to pass to `re_build_web_viewer`' | ||
required: false | ||
default: '' | ||
ADHOC_NAME: | ||
type: string | ||
description: 'Name of the stored adhoc build' | ||
required: true | ||
|
||
jobs: | ||
|
||
run-adhoc-web: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Adhoc web | ||
run: | | ||
echo "TODO(jleibs): Run adhoc web" | ||
min-test-wheel: | ||
name: 'Minimum Test Wheel' | ||
# The upload-web job uses the min-test-wheel to get the RRD | ||
uses: ./.github/workflows/reusable_build_and_test_wheels.yml | ||
with: | ||
CONCURRENCY: adhoc-web-${{ github.event.inputs.ADHOC_NAME }} | ||
PLATFORM: linux | ||
MATURIN_FEATURE_FLAGS: '--no-default-features --features extension-module' | ||
WHEEL_ARTIFACT_NAME: '' | ||
RRD_ARTIFACT_NAME: linux-rrd-fast | ||
secrets: inherit | ||
|
||
build-web-adhoc: | ||
name: 'Build Web' | ||
uses: ./.github/workflows/reusable_build_web.yml | ||
with: | ||
CONCURRENCY: adhoc-web-${{ github.event.inputs.ADHOC_NAME }} | ||
EXTRA_FLAGS: ${{ github.event.inputs.EXTRA_FLAGS }} | ||
secrets: inherit | ||
|
||
upload-web: | ||
name: 'Upload Web' | ||
needs: [min-test-wheel, build-web-adhoc] | ||
uses: ./.github/workflows/reusable_upload_web.yml | ||
with: | ||
CONCURRENCY: adhoc-web-${{ github.event.inputs.ADHOC_NAME }} | ||
MARK_PRERELEASE_FOR_MAINLINE: false | ||
MARK_TAGGED_VERSION: false | ||
ADHOC_NAME: ${{ github.event.inputs.ADHOC_NAME }} | ||
RRD_ARTIFACT_NAME: linux-rrd-fast | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters