Skip to content

Commit

Permalink
Move back to full since the build is designed to produce CLI.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Aug 15, 2024
1 parent c081fb0 commit a62f745
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: --features web --target x86_64-pc-windows-gnu --release
args: --features full --target x86_64-pc-windows-gnu --release
- uses: actions/upload-artifact@v3
with:
name: rtz_x86_64-pc-windows-gnu
Expand All @@ -76,7 +76,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: --features web --target x86_64-unknown-linux-gnu --release
args: --features full --target x86_64-unknown-linux-gnu --release
- uses: actions/upload-artifact@v3
with:
name: rtz_x86_64-unknown-linux-gnu
Expand All @@ -98,7 +98,7 @@ jobs:
- uses: actions-rs/cargo@v1
with:
command: build
args: --features web --target aarch64-apple-darwin --release
args: --features full --target aarch64-apple-darwin --release
- uses: actions/upload-artifact@v3
with:
name: rtz_aarch64-apple-darwin
Expand Down
5 changes: 3 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ $ wasm-pack publish
```bash
$ # Regenerate the cache.
$ cargo build --release --no-default-features --features full
$ cargo wasix build --release --features full
$ # Create the WASI binary.
$ cargo wasi build --release --features full
$ # Need `--no-validate` for some reason when pushing a WASIX binary.
$ wasmer publish --no-validate
$ wasmer publish
```

## Publish to Docker
Expand Down
7 changes: 3 additions & 4 deletions wasmer.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'twitchax/rtz'
version = '0.5.0'
version = '0.7.0'
description = 'A tool to easily work with geo lookups via a binary, a library, or a server.'
license = 'MIT'
readme = 'README.md'
Expand All @@ -14,13 +14,12 @@ wasmer-extra-flags = "--net --enable-threads --enable-bulk-memory"

[[module]]
name = 'rtz'
source = 'target/wasm32-wasmer-wasi/release/rtz.wasm'
abi = 'wasi'
source = 'target/wasm32-wasi/release/rtz.wasm'

[module.interfaces]
wasi = '0.1.0-unstable'

[[command]]
name = 'rtz'
module = 'rtz'
runner = "https://webc.org/runner/wasi"
runner = "wasi"

0 comments on commit a62f745

Please sign in to comment.