-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to proper wit deps handling (#10)
* guest works * working version * actually it's kinda works * add some docs
- Loading branch information
Showing
27 changed files
with
775 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [root] | ||
pull_request: | ||
branches: [root] | ||
|
||
jobs: | ||
deps-up-to-date: | ||
name: Check I2C dependency is up-to-date | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: ensure `./wit/deps` are in sync | ||
run: | | ||
curl -Lo 'wit-deps' https://github.com/bytecodealliance/wit-deps/releases/download/v0.3.2/wit-deps-x86_64-unknown-linux-musl | ||
chmod +x ./wit-deps | ||
./wit-deps lock --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
**/target | ||
|
||
# Ignore all wasm files, except the empty ones | ||
*.wasm | ||
!empty.wasm | ||
|
||
# Added by cargo | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
default: hat host | ||
|
||
hat: build-hat cp-hat | ||
lcd: build-lcd cp-lcd | ||
host: build-host | ||
|
||
build-hat: | ||
cd guest/hat && cargo +nightly component build --release | ||
|
||
cp-hat: | ||
cp guest/target/wasm32-wasi/release/hat.wasm hat.wasm | ||
|
||
build-lcd: | ||
cd guest/lcd && cargo +nightly component build --release | ||
|
||
cp-lcd: | ||
cp guest/target/wasm32-wasi/release/lcd.wasm lcd.wasm | ||
|
||
build-host: | ||
cd host && cargo build --release --target aarch64-unknown-linux-gnu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(module) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.