From 6199699f1c16226429b1db7abd6fd5df2c6b34aa Mon Sep 17 00:00:00 2001 From: Hans Gaiser Date: Wed, 22 Jan 2025 21:43:10 +0100 Subject: [PATCH] Add Rust workflow for CI. --- .github/workflows/rust.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..08c2019 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,34 @@ +name: Test Rust bindings + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + name: Run tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Build + run: | + source /etc/profile + cargo build --verbose + shell: bash + + - name: Run tests + run: | + source /etc/profile + cargo test --verbose + shell: bash + + - name: Machete + uses: bnjbvr/cargo-machete@main