From 093b4a94dcc5261d3f1d030088079c887d5e4b34 Mon Sep 17 00:00:00 2001 From: Cydhra <ubezl@student.kit.edu> Date: Tue, 9 Jul 2024 03:22:13 +0200 Subject: [PATCH] Create rust.yml cargo test workflow --- .github/workflows/rust.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..e6d705f --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,23 @@ +name: Rust + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -C target-cpu=native + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose --all-features + - name: Run tests + run: cargo test --verbose --all-features