From 6577893af819e0f2f90ed0ce7dc8993827dea42c Mon Sep 17 00:00:00 2001 From: Adam Wick Date: Fri, 7 Apr 2023 10:17:05 -0700 Subject: [PATCH] Create .github/workflows/rust.yml --- .github/workflows/rust.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..a59b657 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,33 @@ +name: Rust + +on: + push: + branches: [ "develop", "ci" ] + pull_request: + branches: [ "develop" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + rust: [stable] + + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v3 + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: ${{ rust }} + default: true + override: true + - name: Build + run: cargo build --verbose + - name: Format Check + run: cargo fmt --check + - name: Run tests + run: cargo test --verbose