From d538b5a4a74244313c3e61c48950ad64129d767d Mon Sep 17 00:00:00 2001 From: Jan <1324490+janrueth@users.noreply.github.com> Date: Fri, 24 Nov 2023 15:59:04 +0100 Subject: [PATCH] Create ci.yml --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..09c3df3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Rust check + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + RUSTFLAGS: -Dwarnings + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt-get install -y cmake clang + - name: Check fmt + run: cargo fmt --all --check + - name: Lint + run: cargo clippy --workspace --all-targets -F "logging,tls12" + - name: Tests usual + run: cargo test --all-targets -F "logging,tls12" + - name: Build usual + run: cargo build --all-targets -F "logging,tls12"