Skip to content

Commit

Permalink
WIP: more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tronical committed Jul 11, 2024
1 parent eda71b0 commit 7b30697
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/wasm_demos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ on:
description: extra rustflags
fast_ci_check:
type: boolean
default: false
required: false
required: true
description: True if we're just building for the CI and then just one demo is built

jobs:
Expand All @@ -36,7 +35,7 @@ jobs:
wasm-pack build --release --target web
working-directory: examples/printerdemo/rust
- name: Gallery WASM build
if: "${{ github.event.inputs.fast_ci_check != 'true' }}"
if: ${{ inputs.fast_ci_check != 'true' }}
run: |
sed -i "s/#wasm# //" Cargo.toml
export SLINT_STYLE=fluent && wasm-pack build --release --out-dir pkg/fluent --target web
Expand All @@ -45,7 +44,7 @@ jobs:
export SLINT_STYLE=cosmic && wasm-pack build --release --out-dir pkg/cosmic --target web
working-directory: examples/gallery
- name: Remaining wasm demos
if: "${{ github.event.inputs.fast_ci_check != 'true' }}"
if: ${{ inputs.fast_ci_check != 'true' }}
run: |
for demo in examples/printerdemo/rust examples/printerdemo_old/rust examples/todo/rust examples/todo-mvc/rust examples/carousel/rust examples/slide_puzzle examples/memory examples/imagefilter/rust examples/plotter examples/opengl_underlay; do
pushd $demo
Expand All @@ -54,13 +53,13 @@ jobs:
popd
done
- name: Energy Monitor example WASM build
if: "${{ github.event.inputs.fast_ci_check != 'true' }}"
if: ${{ inputs.fast_ci_check != 'true' }}
run: |
sed -i "s/#wasm# //" Cargo.toml
wasm-pack build --release --target web --no-default-features --features slint/default,chrono
working-directory: examples/energy-monitor
- name: "Upload Demo Artifacts"
if: "${{ github.event.inputs.fast_ci_check != 'true' }}"
if: ${{ inputs.fast_ci_check != 'true' }}
uses: actions/upload-artifact@v4
with:
name: wasm_demo
Expand Down

0 comments on commit 7b30697

Please sign in to comment.