From 0e26aae1eee850e062188e53632e3530d1acf3cb Mon Sep 17 00:00:00 2001 From: Jason Siefken Date: Sat, 13 Jan 2024 13:25:59 -0500 Subject: [PATCH] Add CI --- .github/workflows/on-pull-request.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/on-pull-request.yml diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml new file mode 100644 index 0000000..a2e829c --- /dev/null +++ b/.github/workflows/on-pull-request.yml @@ -0,0 +1,29 @@ +name: Build and Test + +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v3 + + - name: Install toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Check + uses: actions-rs/cargo@v1 + with: + command: check + + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build