Skip to content

Commit

Permalink
use setup actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Jan 30, 2024
1 parent bd5a80c commit ad6ba7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-component -y
- run: |
cargo binstall --git https://github.com/bytecodealliance/wit-bindgen wit-bindgen-cli -y
- uses: jcbhmr/setup-cargo-component@v1
- uses: jcbhmr/setup-wit-bindgen@v1
- id: configure-pages
uses: actions/configure-pages@v4
- run: make build
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/make-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-component -y
- run: cargo binstall wasm-tools -y
- uses: jcbhmr/setup-cargo-component@v1
- uses: jcbhmr/setup-wasm-tools@v1
- run: make build
- run: |
wasm-tools component wit \
target/wasm32-unknown-unknown/debug/${{ env.COMPONENT_WORLD }}.wasm \
| sed 's/^/ /' \
>> "$GITHUB_STEP_SUMMARY"
"target/wasm32-unknown-unknown/debug/$COMPONENT_WORLD.wasm" \
| sed 's/^/ /' >> "$GITHUB_STEP_SUMMARY"
- uses: actions/upload-artifact@v4
with:
name: artifact
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/make-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: rustup target add wasm32-unknown-unknown
- uses: cargo-bins/cargo-binstall@main
- run: cargo binstall cargo-component -y
- uses: jcbhmr/setup-cargo-component@v1
- run: make build RELEASE=1
- run: make publish GHFLAGS="$GHFLAGS"
env:
Expand Down

0 comments on commit ad6ba7d

Please sign in to comment.