Skip to content

Commit 4b499a3

Browse files
committed
Update to iced 0.14.0
1 parent 2e372d1 commit 4b499a3

16 files changed

Lines changed: 1634 additions & 795 deletions

File tree

.github/workflows/page.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ jobs:
2121
- name: Checkout
2222
uses: actions/checkout@v1
2323

24-
- name: Install latest rust toolchain
25-
uses: actions-rs/toolchain@v1
26-
with:
27-
toolchain: stable
28-
target: wasm32-unknown-unknown
29-
default: true
30-
override: true
24+
- name: Install trunk
25+
run: cargo install trunk
26+
27+
- name: Install wasm32 target
28+
run: rustup target add wasm32-unknown-unknown
29+
3130
- name: Build
32-
run: cargo build -p basic_example --target wasm32-unknown-unknown --release
33-
- name: Install wasm-bindgen
34-
run: cargo install wasm-bindgen-cli
35-
- name: Generate JS bindings
36-
run: wasm-bindgen target/wasm32-unknown-unknown/release/basic_example.wasm --out-dir web --target web --no-typescript
37-
- name: Copy index.html
38-
run: cp examples/basic/index.html web
31+
working-directory: examples/basic
32+
run: trunk build --release
33+
34+
- name: Copy dist to web
35+
run: cp -r examples/basic/dist/* web
36+
3937
- name: Setup Pages
4038
uses: actions/configure-pages@v5
39+
4140
- name: Upload artifact
4241
uses: actions/upload-pages-artifact@v4.0.0
4342
with:
4443
path: 'web'
44+
4545
- name: Deploy to GitHub Pages
4646
id: deployment
4747
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
target
22
Cargo.lock
33
web
4+
examples/basic/dist

0 commit comments

Comments
 (0)