From 4acddcd783dcfe9f6511e3744b700fed26a920af Mon Sep 17 00:00:00 2001 From: Noah Bruns Date: Wed, 26 Jun 2024 11:08:40 +0200 Subject: [PATCH] ci: running github workflows --- .github/workflows/batsat.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/batsat.yml diff --git a/.github/workflows/batsat.yml b/.github/workflows/batsat.yml new file mode 100644 index 00000000..8eb0e5dd --- /dev/null +++ b/.github/workflows/batsat.yml @@ -0,0 +1,34 @@ +name: BatSat + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build-test: + name: Build and test + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + runs-on: ${{ matrix.os }} + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Install stable toolchain + uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + shared-key: "build-test" + - name: Cargo build + run: cargo build -p rustsat-batsat --verbose + env: + CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }} + - name: Cargo test + run: cargo test -p rustsat-batsat --verbose + env: + CMAKE_BUILD_PARALLEL_LEVEL: ${{ fromJSON('["", "4"]')[matrix.os == 'macos-latest'] }}