From fc0329c7e33c5fad3a4ce57c27f28a00339c8621 Mon Sep 17 00:00:00 2001 From: Jacob Date: Fri, 12 Jul 2024 20:04:47 -0400 Subject: [PATCH] add GitHub Actions workflow to build and test I got from somewhere (I don't remember where) --- .github/workflows/build-and-test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-and-test.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml new file mode 100644 index 0000000..a10eba9 --- /dev/null +++ b/.github/workflows/build-and-test.yml @@ -0,0 +1,28 @@ +name: Cargo Build & Test + +on: + push: + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + build_and_test: + name: Rust project - latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + toolchain: + - stable + - beta + - nightly + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose