Skip to content

Commit

Permalink
[github] integrates testing of plugin_wasm to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hkrn committed Mar 22, 2024
1 parent ced92f3 commit a544afc
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,26 @@ jobs:
run: |
sudo apt-get update && sudo apt-get install -y \
protobuf-compiler
- name: setup cargo-deny
uses: EmbarkStudios/cargo-deny-action@v1
- name: setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: build plugin_wasm
run: ./scripts/build.sh
- name: build plugin_wasm and its test WASMs
run: |
profiles=('dev' 'release-lto')
packages=(
'plugin_wasm_test_model_minimum'
'plugin_wasm_test_motion_minimum'
'plugin_wasm_test_model_full'
'plugin_wasm_test_motion_full'
)
for profile in "${profiles[@]}"; do
for package in "${packages[@]}"; do
cargo build --profile ${profile} --package ${package} --target wasm32-wasi
done
done
cargo check --profile release-lto
cargo test --profile release-lto
codeql:
if: ${{ false }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit a544afc

Please sign in to comment.