Skip to content

Commit ad6ba7d

Browse files
authored
use setup actions
1 parent bd5a80c commit ad6ba7d

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,8 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727
- run: rustup target add wasm32-unknown-unknown
28-
- uses: cargo-bins/cargo-binstall@main
29-
- run: cargo binstall cargo-component -y
30-
- run: |
31-
cargo binstall --git https://github.com/bytecodealliance/wit-bindgen wit-bindgen-cli -y
28+
- uses: jcbhmr/setup-cargo-component@v1
29+
- uses: jcbhmr/setup-wit-bindgen@v1
3230
- id: configure-pages
3331
uses: actions/configure-pages@v4
3432
- run: make build

.github/workflows/make-build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,13 @@ jobs:
3030
steps:
3131
- uses: actions/checkout@v4
3232
- run: rustup target add wasm32-unknown-unknown
33-
- uses: cargo-bins/cargo-binstall@main
34-
- run: cargo binstall cargo-component -y
35-
- run: cargo binstall wasm-tools -y
33+
- uses: jcbhmr/setup-cargo-component@v1
34+
- uses: jcbhmr/setup-wasm-tools@v1
3635
- run: make build
3736
- run: |
3837
wasm-tools component wit \
39-
target/wasm32-unknown-unknown/debug/${{ env.COMPONENT_WORLD }}.wasm \
40-
| sed 's/^/ /' \
41-
>> "$GITHUB_STEP_SUMMARY"
38+
"target/wasm32-unknown-unknown/debug/$COMPONENT_WORLD.wasm" \
39+
| sed 's/^/ /' >> "$GITHUB_STEP_SUMMARY"
4240
- uses: actions/upload-artifact@v4
4341
with:
4442
name: artifact

.github/workflows/make-publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- run: rustup target add wasm32-unknown-unknown
15-
- uses: cargo-bins/cargo-binstall@main
16-
- run: cargo binstall cargo-component -y
15+
- uses: jcbhmr/setup-cargo-component@v1
1716
- run: make build RELEASE=1
1817
- run: make publish GHFLAGS="$GHFLAGS"
1918
env:

0 commit comments

Comments
 (0)