-
Notifications
You must be signed in to change notification settings - Fork 108
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
6 changed files
with
139 additions
and
59 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,29 @@ | ||
# .github/workflows/libwasmvm_audit.yml | ||
name: libwasmvm_audit | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
libwasmvm_audit: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.83.0 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install OpenSSL | ||
run: | | ||
sudo apt update | ||
sudo apt install libssl-dev | ||
- name: Show Rust version information | ||
run: rustc --version && cargo --version && rustup --version | ||
- name: Install cargo-audit | ||
run: cargo install --debug cargo-audit --version 0.21.0 | ||
- name: Run cargo-audit | ||
working-directory: libwasmvm | ||
run: cargo audit |
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,51 @@ | ||
# .github/workflows/libwasmvm_sanity.yml | ||
name: libwasmvm_sanity | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 0.14-dev | ||
- GoIter-creation | ||
- release/* | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
libwasmvm_sanity: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rust:1.83.0 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Show Rust version information | ||
run: rustc --version && cargo --version && rustup --version | ||
- name: Add Rust components | ||
run: rustup component add rustfmt | ||
- name: Ensure libwasmvm/bindings.h is up-to-date | ||
working-directory: libwasmvm | ||
run: | | ||
cargo check | ||
CHANGES_IN_REPO=$(git status --porcelain bindings.h) | ||
if [[ -n "$CHANGES_IN_REPO" ]]; then | ||
echo "Repository is dirty. Showing 'git status' and 'git --no-pager diff' for debugging now:" | ||
git status && git --no-pager diff | ||
exit 1 | ||
fi | ||
- name: Ensure internal/api/bindings.h is up to date | ||
run: diff libwasmvm/bindings.h internal/api/bindings.h | ||
- name: Check Rust formatting | ||
working-directory: libwasmvm | ||
run: cargo fmt -- --check | ||
- name: Run unit tests | ||
working-directory: libwasmvm | ||
run: cargo test | ||
- name: Build docs | ||
working-directory: libwasmvm | ||
run: cargo doc --no-deps | ||
- name: Test docs | ||
working-directory: libwasmvm | ||
run: | | ||
sed -i '/^crate-type = \["cdylib"\]/d' Cargo.toml | ||
cargo test --doc |
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.