-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 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,43 @@ | ||
name: WASI Bindings | ||
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/wasi-bindings.yml" | ||
- "include/" | ||
- "src/" | ||
- "*akefile*" | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: head | ||
bundler-cache: true | ||
|
||
- name: rake templates | ||
run: bundle exec rake templates | ||
|
||
- name: Create build directory | ||
run: mkdir -p build | ||
|
||
- name: Set up WASI-SDK | ||
run: | | ||
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz | ||
tar xvf wasi-sdk-20.0-linux.tar.gz | ||
- name: Build the project | ||
run: make wasm WASI_SDK_PATH=$(pwd)/wasi-sdk-20.0 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: prism.wasm | ||
path: build/prism.wasm |
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