From 0de89b20cb06da7db8db3187cb76b1c624ec63ee Mon Sep 17 00:00:00 2001 From: Sara Tavares <29093946+stavares843@users.noreply.github.com> Date: Tue, 3 Dec 2024 22:42:01 +0000 Subject: [PATCH] add ci to execute cargo check --- .github/workflows/cargo-check.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cargo-check.yml diff --git a/.github/workflows/cargo-check.yml b/.github/workflows/cargo-check.yml new file mode 100644 index 0000000..dabc965 --- /dev/null +++ b/.github/workflows/cargo-check.yml @@ -0,0 +1,24 @@ +name: Rust Code Check + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + cargo-check: + name: Cargo Check + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Set up Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Run Cargo Check + run: cargo check --target=wasm32-unknown-unknown