diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cmake.yml | 11 | ||||
-rw-r--r-- | .github/workflows/rust.yml | 26 |
2 files changed, 35 insertions, 2 deletions
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 |