From 041cb7988769c1c93adfb8c47b03e77ae2a4dfa6 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 14 May 2024 16:47:20 -0500 Subject: Add Rust Signed-off-by: Matt Strapp --- .github/workflows/cmake.yml | 11 +++++++++-- .github/workflows/rust.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/rust.yml (limited to '.github/workflows') diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e1b9cb8..37f112f 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -1,11 +1,18 @@ -name: CMake Builds +name: C on: push: + paths: + - "**.c" + - "**.h" pull_request: + paths: + - "**.c" + - "**.h" jobs: - build: + cmake: + name: CMake Builds runs-on: $ {{ matrix.os }} strategy: fail-fast: false diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..712eb10 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,26 @@ +name: Rust + +on: + push: + paths: + - "**.c" + - "**.h" + pull_request: + paths: + - "**.c" + - "**.h" + +jobs: + rust: + name: Rust Builds + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - uses: actions-rust-lang/setup-rust-toolchain@v1 + - name: Test + run: cargo test --verbose -- cgit v1.2.3