Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/publish-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- name: Login GH CLI
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- name: Delete old dev release
run: gh release delete -R bytecodealliance/wac dev -y || true
run: gh release delete -R bytecodealliance/wac-cli dev -y || true
- name: Create new latest release
run: gh release create -R bytecodealliance/wac dev --prerelease --notes "Published artifacts from the latest build"
run: gh release create -R bytecodealliance/wac-cli dev --prerelease --notes "Published artifacts from the latest build"

publish_dev_release:
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'bytecodealliance/wac'
Expand Down Expand Up @@ -54,14 +54,14 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac.exe ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac-cli.exe ./target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
- run: mv ./target/${{ matrix.rust-target }}/release/wac ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac-cli ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
if: matrix.os != 'windows-latest'
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/wac --clobber dev target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/wac-cli --clobber dev target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}

publish_tagged_release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'bytecodealliance/wac'
Expand Down Expand Up @@ -93,11 +93,11 @@ jobs:
if: ${{ matrix.cross }}
- run: cross build --release --target ${{ matrix.rust-target }} --features native-tls-vendored
if: ${{ matrix.cross }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac.exe ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac-cli.exe ./target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
if: matrix.os == 'windows-latest'
- run: mv ./target/${{ matrix.rust-target }}/release/wac ./target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: mv ./target/${{ matrix.rust-target }}/release/wac-cli ./target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
if: matrix.os != 'windows-latest'
- name: Login GH CLI
shell: bash
run: gh auth login --with-token < <(echo ${{ secrets.GITHUB_TOKEN }})
- run: gh release upload -R bytecodealliance/wac --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/wac-${{ matrix.rust-target }}
- run: gh release upload -R bytecodealliance/wac-cli --clobber ${{ github.ref_name }} target/${{ matrix.rust-target }}/release/wac-cli-${{ matrix.rust-target }}
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ keywords = { workspace = true }
repository = { workspace = true }

[workspace.package]
version = "0.1.0"
version = "0.3.0-dev"
edition = "2021"
authors = ["Peter Huene <peter@huene.dev>"]
license = "Apache-2.0 WITH LLVM-exception"
Expand Down Expand Up @@ -52,10 +52,10 @@ native-tls-vendored = ["warg-client?/native-tls-vendored"]
members = ["examples/programmatic"]

[workspace.dependencies]
wac-parser = { path = "crates/wac-parser", version = "0.1.0", default-features = false }
wac-resolver = { path = "crates/wac-resolver", version = "0.1.0", default-features = false }
wac-graph = { path = "crates/wac-graph", version = "0.1.0" }
wac-types = { path = "crates/wac-types", version = "0.1.0" }
wac-parser = { path = "crates/wac-parser", version = "0.3.0-dev", default-features = false }
wac-resolver = { path = "crates/wac-resolver", version = "0.3.0-dev", default-features = false }
wac-graph = { path = "crates/wac-graph", version = "0.3.0-dev" }
wac-types = { path = "crates/wac-types", version = "0.3.0-dev" }
wit-parser = "0.202.0"
wasmparser = "0.202.0"
wit-component = "0.202.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@
)
)
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
2 changes: 1 addition & 1 deletion crates/wac-parser/tests/encoding/instantiation.wac.result
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@
(alias export $x4 "foo" (func (;3;)))
(export (;4;) "foo" (func 3))
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@
)
)
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
2 changes: 1 addition & 1 deletion crates/wac-parser/tests/encoding/resources.wac.result
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@
(alias export $x "foo" (instance (;2;)))
(export (;3;) "foo" (instance 2))
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
4 changes: 2 additions & 2 deletions crates/wac-parser/tests/encoding/resources/foo/bar.wat
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
(import "foo" (instance (;0;) (type 0)))
(export "foo" (instance 0))
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
)
2 changes: 1 addition & 1 deletion crates/wac-parser/tests/encoding/types.wac.result
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@
(export $p2 (;59;) "p2" (type $p))
(export $q2 (;60;) "q2" (type $q))
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
2 changes: 1 addition & 1 deletion crates/wac-resolver/tests/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export i2.foo as "bar";
(export (;6;) "test:wit/foo" (instance 4))
(export (;7;) "bar" (instance 5))
(@producers
(processed-by "wac-parser" "0.1.0")
(processed-by "wac-parser" "0.3.0-dev")
)
)
"#
Expand Down