mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
* wopsies, missing imports * more clippy and fmt * adding test build for kanidm with idv-tui feature * making codespell happy --------- Co-authored-by: James Hodgkinson <james@terminaloutcomes.com>
40 lines
933 B
YAML
40 lines
933 B
YAML
---
|
|
name: "Linux Build and Test"
|
|
# Trigger the workflow on push to master or pull request
|
|
"on":
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
env:
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
RUSTC_WRAPPER: "sccache"
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
rust_build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.3
|
|
with:
|
|
version: "v0.4.2"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update && \
|
|
sudo apt-get install -y \
|
|
libpam0g-dev \
|
|
libudev-dev \
|
|
libssl-dev \
|
|
libsqlite3-dev
|
|
|
|
- run: cargo build --workspace
|
|
- run: cargo build --bin kanidm --features idv-tui
|
|
- run: cargo test |