kanidm/.github/workflows/clippy.yml
micolous 850a985692
use sccache, merge "test" actions into "build", remove homebrew caching (#1578)
* use sccache, merge "test" actions into "build", remove homebrew caching
* rename some actions, make windows build in debug mode to be consistent with tests
* run CI on Windows for pull requests, only upload to releases for the correct repo
* Don't need rust on ubuntu-latest
2023-04-27 22:35:24 +10:00

39 lines
830 B
YAML

---
name: Clippy
# Trigger the workflow on push or pull request
"on":
push:
branches-ignore:
- master
pull_request:
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.3
- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y \
libpam0g-dev \
libudev-dev \
libssl-dev \
libsqlite3-dev \
pkg-config
- name: "Run clippy (ignores errors, this is just a check)"
run: cargo clippy
continue-on-error: true