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

Release v0.7.2 #141

Merged
merged 9 commits into from
Feb 12, 2024
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
33 changes: 16 additions & 17 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,44 +22,43 @@ jobs:
run: rustup target add wasm32-unknown-unknown wasm32-wasi
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v1
- name: Install cargo-wapm
- name: Install cargo-wasmer
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-wapm --verbose --debug --version '^0.3'

- name: Login to wapm.dev
args: cargo-wasmer --verbose --debug --version '^0.4' --locked
- name: Login to wasmer.wtf
run: |
wapm config set registry.url https://registry.wapm.dev
wapm login ${{ secrets.WAPM_DEV_TOKEN }}
- name: Publish to wapm.dev
run: cargo wapm --package wasmer-pack-cli --package wasmer-pack-wasm
wasmer config set registry.url https://registry.wasmer.wtf
wasmer login ${{ secrets.WAPM_DEV_TOKEN }}
- name: Publish to wasmer.wtf
run: cargo wasmer --package wasmer-pack-cli --package wasmer-pack-wasm
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
- name: Update the bindings generator on wapm.dev
- name: Update the bindings generator on wasmer.wtf
uses: actions-rs/cargo@v1
with:
command: xtask
args: set-generator wasmer/wasmer-pack-cli
env:
REGISTRY: https://registry.wapm.dev/graphql
REGISTRY: https://registry.wasmer.wtf/graphql
TOKEN: ${{ secrets.WAPM_DEV_TOKEN }}
VERSION: latest
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}

- name: Login to wapm.io
- name: Login to wasmer.io
run: |
wapm config set registry.url https://registry.wapm.io
wapm login ${{ secrets.WAPM_PROD_TOKEN }}
- name: Publish to wapm.io
run: cargo wapm --package wasmer-pack-cli --package wasmer-pack-wasm
wasmer config set registry.url https://registry.wasmer.io
wasmer login ${{ secrets.WAPM_PROD_TOKEN }}
- name: Publish to wasmer.io
run: cargo wasmer --package wasmer-pack-cli --package wasmer-pack-wasm
continue-on-error: ${{ github.event_name == 'workflow_dispatch' }}
- name: Update the bindings generator on wapm.io
- name: Update the bindings generator on wasmer.io
uses: actions-rs/cargo@v1
with:
command: xtask
args: set-generator wasmer/wasmer-pack-cli
env:
REGISTRY: https://registry.wapm.io/graphql
REGISTRY: https://registry.wasmer.io/graphql
TOKEN: ${{ secrets.WAPM_PROD_TOKEN }}
VERSION: latest
COMMAND: wasmer-pack
Expand Down
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ change, where applicable.

## [Unreleased] - ReleaseDate

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

## [0.7.2] - 2024-02-12

### Changed

- Allow packages with `.` in their names. This is useful for packages
`my-website.com`. Internally, the `.` is converted into a `-` to
make it a valid binding name.
Expand Down Expand Up @@ -303,7 +319,14 @@ change, where applicable.
## [0.1.2] - 2022-08-24

<!-- next-url -->
[Unreleased]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.1...HEAD
[Unreleased]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...HEAD
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.2...v0.7.2
[0.7.2]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.1...v0.7.2
[0.7.1]: https://github.com/wasmerio/wasmer-pack/compare/v0.7.0...v0.7.1
[0.7.0]: https://github.com/wasmerio/wasmer-pack/compare/v0.6.0...v0.7.0
[0.6.0]: https://github.com/wasmerio/wasmer-pack/compare/v0.5.3...v0.6.0
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license = "MIT"
readme = "README.md"
repository = "https://github.com/wasmerio/wasmer-pack"
rust-version = "1.67.0" # Required for [workspace.package]
version = "0.7.1"
version = "0.7.2"

[workspace.dependencies]
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ anyhow = { workspace = true }
clap = { workspace = true }
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.85"
wasmer-pack = { version = "0.7.1", path = "../wasmer-pack" }
wasmer-pack = { version = "0.7.2", path = "../wasmer-pack" }
webc = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tempfile = "3.3.0"
tracing = "0.1.37"
serde_json = "1.0.89"
serde = "1.0.149"
wasmer-pack-cli = { version = "0.7.1", path = "../cli" }
wasmer-pack-cli = { version = "0.7.2", path = "../cli" }
cargo-wasmer = "0.4.0"

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion crates/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ harness = false
[dependencies]
anyhow = { workspace = true }
getrandom = { version = "0.2.8", features = ["custom"] }
original = { package = "wasmer-pack", version = "0.7.1", path = "../wasmer-pack" }
original = { package = "wasmer-pack", version = "0.7.2", path = "../wasmer-pack" }
wai-bindgen-rust = { workspace = true }
webc = { workspace = true }

Expand Down
4 changes: 2 additions & 2 deletions crates/xtask/src/set_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ struct GetPackageVersionQuery;
#[derive(Debug, clap::Parser)]
pub struct SetGenerator {
/// The GraphQL endpoint to send requests to.
#[clap(long, env, default_value = "https://registry.wapm.io/graphql")]
#[clap(long, env, default_value = "https://registry.wasmer.io/graphql")]
registry: String,
/// Look up the package and command, but don't send the final request to
/// update the generator.
Expand Down Expand Up @@ -151,7 +151,7 @@ where
let query =
serde_json::to_string(&query).context("Unable to serialize the request body as JSON")?;

let request = ureq::post(registry).set("Content-Type", "application/json; charset=utf8");
let request = ureq::post(registry).set("Content-Type", "application/json");

let response = update_request(request)
.send_string(&query)
Expand Down
Loading