Stream: git-wasmtime

Topic: wasmtime / issue #6101 Provide a GitHub Action to install...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 25 2023 at 17:34):

brettcannon opened issue #6101:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

It would be great if wasmtime had an official GitHub Action to install the binary on to $PATH. Bonus if you allow for controlling what version to install.

Benefit

The install.sh script assumes you source your shell's config file after installation. But that typically doesn't happen in CI (e.g. GitHub Actions). Do you either have to manipulate $PATH or symlink wasmtime into a directory already on $PATH (at least while wasmtime isn't available from the OS).

Implementation

I have a hacked solution for my CI at https://github.com/brettcannon/cpython-wasi-build/blob/4c2f137fb9d15f62a296151c1f13ba77c0102755/.github/workflows/release.yml#L32 , but admittedly its structure is based on copying from a Dockerfile and so may not be optimal for reuse.

Alternatives

https://github.com/marketplace/actions/set-up-wasmtime , although it doesn't seem to support the concept of "latest".

view this post on Zulip Wasmtime GitHub notifications bot (Sep 27 2023 at 19:25):

rajatjindal commented on issue #6101:

I have implemented a GitHub action for setting up wasmtime. The code is currently available here: https://github.com/rajatjindal/github-action

Few notes:

      - name: setup wasmtime
        uses: bytecodealliance/github-actions/wasmtime/setup@v1
        with:
          ## optional, defaults to latest
          version: v12.0.0
          ## optional
          github_token: ${{ github.token }}

Happy to address any feedback folks might have here.

thanks

view this post on Zulip Wasmtime GitHub notifications bot (Sep 27 2023 at 19:34):

rajatjindal edited a comment on issue #6101:

I have implemented a poc for GitHub action for setting up wasmtime. The code is currently available here: https://github.com/rajatjindal/github-action

Few notes:

      - name: setup wasmtime
        uses: bytecodealliance/github-actions/wasmtime/setup@v1
        with:
          ## optional, defaults to latest
          version: v12.0.0
          ## optional
          github_token: ${{ github.token }}

Happy to address any feedback folks might have here.

thanks

view this post on Zulip Wasmtime GitHub notifications bot (Sep 27 2023 at 19:35):

rajatjindal edited a comment on issue #6101:

I have implemented a poc of GitHub action for setting up wasmtime. The code is currently available here: https://github.com/rajatjindal/github-action

Few notes:

      - name: setup wasmtime
        uses: bytecodealliance/github-actions/wasmtime/setup@v1
        with:
          ## optional, defaults to latest
          version: v12.0.0
          ## optional
          github_token: ${{ github.token }}

Happy to address any feedback folks might have here.

thanks

view this post on Zulip Wasmtime GitHub notifications bot (Sep 28 2023 at 03:25):

rajatjindal commented on issue #6101:

I have extended the action poc to also support setting up wasm-tools now.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 28 2023 at 15:24):

alexcrichton commented on issue #6101:

Nice! That all looks reasonable to me and I think would be good to add :+1:

view this post on Zulip Wasmtime GitHub notifications bot (Oct 13 2023 at 15:40):

rajatjindal commented on issue #6101:

this issue can be closed now that we have a GitHub action to setup wasmtime (and wasm-tools)

view this post on Zulip Wasmtime GitHub notifications bot (Oct 13 2023 at 16:28):

pchickey closed issue #6101:

Thanks for filing a feature request! Please fill out the TODOs below.

Feature

It would be great if wasmtime had an official GitHub Action to install the binary on to $PATH. Bonus if you allow for controlling what version to install.

Benefit

The install.sh script assumes you source your shell's config file after installation. But that typically doesn't happen in CI (e.g. GitHub Actions). Do you either have to manipulate $PATH or symlink wasmtime into a directory already on $PATH (at least while wasmtime isn't available from the OS).

Implementation

I have a hacked solution for my CI at https://github.com/brettcannon/cpython-wasi-build/blob/4c2f137fb9d15f62a296151c1f13ba77c0102755/.github/workflows/release.yml#L32 , but admittedly its structure is based on copying from a Dockerfile and so may not be optimal for reuse.

Alternatives

https://github.com/marketplace/actions/set-up-wasmtime , although it doesn't seem to support the concept of "latest".


Last updated: Dec 23 2024 at 12:05 UTC