ci: setup github check workflow

This commit is contained in:
steven-omaha
2023-05-15 15:04:12 +02:00
committed by GitHub
parent 1a28f87134
commit 35286adf5f
+46
View File
@@ -0,0 +1,46 @@
name: pacdef
on:
push:
branches:
- 'main'
- 'rust'
paths:
- 'crates/**.rs'
- 'crates/**/Cargo.toml'
- 'Cargo.*'
- "clippy.toml"
pull_request:
branches:
- 'main'
- 'rust'
paths:
- 'crates/**.rs'
- 'crates/**/Cargo.toml'
- 'Cargo.*'
- "clippy.toml"
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
container:
image: archlinux
steps:
- name: Install Packages
run: pacman -Syu rust clang gcc libarchive pkgconf --noconfirm --needed
- name: Checkout
uses: actions/checkout@v2
- name: Format
run: cargo fmt -- --check
- name: Build
run: cargo build --locked --features arch
- name: Clippy
run: cargo clippy