mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
* fixing unix packaging * stripping out actions-rs/toolchain * fixing an error in the qrcode def in cargo.toml
42 lines
972 B
YAML
42 lines
972 B
YAML
---
|
|
name: "Rust Build"
|
|
# Trigger the workflow on push to master or pull request
|
|
"on":
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
jobs:
|
|
rust_build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Restore our cache
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Update package manager
|
|
run: sudo apt-get update
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y \
|
|
libpam0g-dev \
|
|
libudev-dev \
|
|
libssl-dev \
|
|
libsqlite3-dev
|
|
|
|
- name: Run build
|
|
run: cargo build --verbose --workspace
|