From 303082bd6e3e8466be3471178de5662f8379f1d1 Mon Sep 17 00:00:00 2001 From: Charles Saracco Date: Mon, 25 May 2020 18:23:47 -0400 Subject: [PATCH] Create GitHub action for building project Tries to build on all three platforms we're targeting (Linux, Windows, MacOS) --- .github/workflows/rust.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..057290e --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: [push] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macOS-latest] + + steps: + - uses: actions/checkout@v2 + - name: install rust stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose