Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm-tools: load new tag format #10

Merged
merged 3 commits into from
Feb 25, 2024
Merged

Conversation

ydnar
Copy link
Contributor

@ydnar ydnar commented Feb 22, 2024

Fixes #8.

  • Loads from legacy and new tag formats
  • For consistency, all setup scripts now accept a version spec of v1.0.0 or 1.0.0
  • I renamed CI test job names for readability in the GitHub UI

@rajatjindal
Copy link
Collaborator

thank you so much for the PR (and all the work you do for open source community).

if you have a few mins, could you please add a testcase in https://github.com/bytecodealliance/actions/blob/main/.github/workflows/wasmtools-tests.yml for the new wasm-tools format. (or I am happy to add it myself in a follow up PR).

I’m happy to update this to have wasmtime accept a bare version without the v prefix.

what do you think would be better: to accept version without v prefix or update actions to support both formats (with/without prefix) to avoid any confusions.

thanks

@ydnar
Copy link
Contributor Author

ydnar commented Feb 23, 2024

Thanks for making this! I have a few projects that use it—it’s been handy to have an official setup action for wasmtime, wasm-tools, and wit-bindgen.

Fixes bytecodealliance#8.

wasm-tools: try legacy tag format, then new tag format; strip v from version number

.github/workflows/wasmtools-tests: add tests for 1.200.0 and vN

wasmtools -> wasm-tools

To match the crate and executable name.

.github/workflows/wasm-tools-tests: fix detection

wasm-tools: fix lint issues

wasmtime: accept version values prefixed with 'v'

wit-bindgen: support new tag format, versions with v

.github/workflows: fix failing tests

wit-bindgen: that's what I get for copy and paste early in the morning

wasmtime: correct tag format

wasmtime, wit-bindgen: version string used in copy

wit-bindgen: mutate version variable depending on tag format

wit-bindgen: try this

wit-bindgen: try separate vVersion variable

wit-bindgen: try this

wit-bindgen: use separate binVersion

.github/workflows: rename build jobs with shorter names

So the full matrix names can be seen in GitHub Actions runner sidebar

.github/workflows: move version in front of os for display purposes

.github/workflows: break out tests for v-prefixed versions
@ydnar
Copy link
Contributor Author

ydnar commented Feb 23, 2024

OK, tests pass. I rebased and squashed.

@ydnar
Copy link
Contributor Author

ydnar commented Feb 23, 2024

Would it make sense to bump the release to v1.1 after this is merged?

I can update the README to reflect that and the changes to the accepted version spec.

@rajatjindal
Copy link
Collaborator

Hi @ydnar , thank you for making the changes and adding the tests.

given these changes are backward compatible (please correct me I misread this), I think we can just make a patch release.

In anycase, for v1.x.y, we will move tag v1 to point to latest release automatically (this is the norm I have seen in other actions), so it should be fine either way.

Thanks

@rajatjindal
Copy link
Collaborator

Please let me know if you have opinion about patch vs minor release, and I will cut the new release accordingly. thanks again.

@ydnar
Copy link
Contributor Author

ydnar commented Feb 24, 2024

It's backwards compatible as far as I can tell from the tests. Any version is probably fine.

Do you want to update the README?

@rajatjindal
Copy link
Collaborator

yeah, that would be great. thank you.

- Add wit-bindgen
- Change wasmtime version argument to omit the v prefix
- Markdown lint/format/remove trailing whitespace
- Add backticks around names
@ydnar
Copy link
Contributor Author

ydnar commented Feb 24, 2024

Done!

@rajatjindal rajatjindal merged commit e713ed6 into bytecodealliance:main Feb 25, 2024
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes to wasm-tools publication process breaks installing the latest version
2 participants