Add github actions

This commit is contained in:
Daan Boerlage 2024-01-24 12:59:36 +08:00
parent e66bd29ff8
commit d632ecafda
Signed by: daan
GPG key ID: FCE070E1E4956606

28
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,28 @@
---
name: Build
on:
push:
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v3
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Lint
run: cargo fmt --check
- name: Clippy
run: cargo clippy -- -Dwarnings
- name: Build
run: cargo build