Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
janrueth authored and Jan Rüth committed Nov 24, 2023
1 parent aa74b45 commit d538b5a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit d538b5a

Please sign in to comment.