From e8d5294a70d1537784aa92e66560b662a97d748e Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Sat, 14 Oct 2023 14:02:55 +0200 Subject: [PATCH] Add CI --- .github/workflows/ci.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..1b920c6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: ["main"] + pull_request: + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo clippy --all-targets --all-features -- -D warnings + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: cargo build -v