From 28e3ae40c1a18caddf04b55a540c91d4164aaee8 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 23 Nov 2023 14:49:06 +0100 Subject: [PATCH] Create main.yml foo --- .github/workflows/main.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..b91cd0e --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Build & Test with Cargo +on: [push, pull_request] +jobs: + build: + name: cargo build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo build --all + - run: cargo build --all --examples + test: + name: cargo test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all + - run: cargo test --all --examples