diff options
-rw-r--r-- | .github/workflows/cmake.yml | 11 | ||||
-rw-r--r-- | .github/workflows/rust.yml | 26 | ||||
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | Cargo.lock | 7 | ||||
-rw-r--r-- | Cargo.toml | 6 | ||||
-rw-r--r-- | src/lib.rs | 12 |
6 files changed, 67 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 @@ -137,3 +137,10 @@ go.work.sum # Added by cargo /target + + +# Added by cargo +# +# already existing elements were commented out + +#/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..7386ef7 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "locusts" +version = "1.0.0" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..1053ed3 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "locusts" +version = "1.0.0" +edition = "2021" + +[dependencies] diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..4054f90 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,12 @@ +#![no_std] +pub fn introduce_locusts(){} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test() { + introduce_locusts(); + } +} |