Skip to content

Add format option for V2 demo builds #1385

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

Closed
wants to merge 5 commits into from
Closed
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
21 changes: 17 additions & 4 deletions .github/workflows/v2-build-demos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ on:
required: false
type: string
default: ''
format:
description: Whether to build 'html' or 'json' (default) output.
type: string
required: false
default: 'json'
keep-going:
description: Keep going if a demo fails to build.
required: false
Expand Down Expand Up @@ -76,6 +81,14 @@ on:
required: false
type: string
default: ''
format:
description: Whether to build HTML or JSON (default) output.
type: choice
options:
- json
- html
required: false
default: json
keep-going:
description: Keep going if a demo fails to build.
required: false
Expand Down Expand Up @@ -168,7 +181,7 @@ jobs:
- name: Build demos
run: |
qml build \
--format json \
--format ${{ inputs.format }} \
--execute \
${{ inputs.keep-going && '--keep-going' || '--no-keep-going' }} \
${{ inputs.quiet && '--quiet' || '--no-quiet' }} \
Expand All @@ -181,7 +194,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ needs.generate-build-variables.outputs.artifact-name }}-c${{ matrix.chunk-index }}
path: _build/pack/*.zip
path: _build/**/*.zip
retention-days: 1

consolidate-artifacts:
Expand All @@ -198,7 +211,7 @@ jobs:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: _build/pack
path: _build/**
pattern: ${{ needs.generate-build-variables.outputs.artifact-name }}-c*
merge-multiple: true

Expand All @@ -207,7 +220,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ${{ needs.generate-build-variables.outputs.artifact-name }}
path: _build/pack/*.zip
path: _build/**/*.zip
retention-days: 1
overwrite: true

Expand Down
Loading