From a4d2217d6bfdf3e92e85143822cfcae4af57ae75 Mon Sep 17 00:00:00 2001 From: Jimmy Miller Date: Sun, 28 Jul 2024 15:31:10 -0400 Subject: [PATCH] initial github actions setup --- .github/workflows/main.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..18bc1e2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,37 @@ +name: Run Cargo Tests + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + feature-combination: + - "--features compacting,thread-safe" + - "--features simple-generation,thread-safe" + - "--features simple-mark-and-sweep,thread-safe" + - "--features compacting" + - "--features simple-generation" + - "--features simple-mark-and-sweep" + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + override: true + + - name: Run tests with features + run: cargo test ${{ matrix.feature-combination }}