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

[rs]build(gh): have some programs as release assets #687

Merged
merged 4 commits into from
Nov 27, 2024
Merged
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
18 changes: 18 additions & 0 deletions .github/workflows/rs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,20 @@ jobs:
mkdir -p ./assets/sails_idl_parser
wasm-opt -O4 -o ./assets/sails_idl_parser/sails_idl_parser.wasm ./target/wasm32-unknown-unknown/release/sails_idl_parser.wasm

- name: Build Demo
run: |
cargo build -p demo --release
mkdir -p ./assets/demo
cp ./target/wasm32-unknown-unknown/release/demo.opt.wasm ./assets/demo/demo.wasm
cp ./examples/demo/client/demo.idl ./assets/demo/demo.idl

- name: Build NoSvcsProg
run: |
cargo build -p no-svcs-prog --release
mkdir -p ./assets/no_svcs_prog
cp ./target/wasm32-unknown-unknown/release/no_svcs_prog.opt.wasm ./assets/no_svcs_prog/no_svcs_prog.wasm
cp ./examples/no-svcs-prog/wasm/no-svcs-prog.idl ./assets/no_svcs_prog/no-svcs-prog.idl

- name: Upload Assets
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -246,4 +260,8 @@ jobs:
fail_on_unmatched_files: true
files: |
./assets/sails_idl_parser/sails_idl_parser.wasm
./assets/demo/demo.wasm
./assets/demo/demo.idl
./assets/no_svcs_prog/no_svcs_prog.wasm
./assets/no_svcs_prog/no-svcs-prog.idl
token: ${{ secrets.GITHUB_TOKEN }}