diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1d1ea8f6..80bcf9ab 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -154,6 +154,14 @@ jobs: restore-keys: | wasm32-example-yew-tls + - name: Setup | Cache | Example cdylib + uses: actions/cache@v3 + with: + path: examples/cdylib/target + key: wasm32-example-cdylib + restore-keys: | + wasm32-example-cdylib + - name: Setup | Rust run: | rustup toolchain install stable --target wasm32-unknown-unknown @@ -183,5 +191,7 @@ jobs: run: ${{ matrix.binPath }} --config=examples/yew-tailwindcss/Trunk.toml build - name: Build | Examples | yew-tls run: ${{ matrix.binPath }} --config=examples/yew-tls/Trunk.toml build + - name: Build | Examples | cdylib + run: ${{ matrix.binPath }} --config=examples/cdylib/Trunk.toml build - name: Build | Examples | no-rust run: ${{ matrix.binPath }} --config=examples/no-rust/Trunk.toml build diff --git a/examples/cdylib/Trunk.toml b/examples/cdylib/Trunk.toml new file mode 100644 index 00000000..842cc2f7 --- /dev/null +++ b/examples/cdylib/Trunk.toml @@ -0,0 +1,3 @@ +[build] +target = "index.html" +dist = "dist"