aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-05-14 16:47:20 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-05-14 16:47:36 -0500
commit041cb7988769c1c93adfb8c47b03e77ae2a4dfa6 (patch)
treee445d8a4c27387b062afa73b78fdd34f825adf67 /.github
parentAdd Go (diff)
downloadlocusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.gz
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.bz2
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.lz
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.xz
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.tar.zst
locusts-041cb7988769c1c93adfb8c47b03e77ae2a4dfa6.zip
Add Rust
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml11
-rw-r--r--.github/workflows/rust.yml26
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