mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 12:37:00 +01:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
---
|
|
name: Windows Build and Test
|
|
|
|
# at the moment this only builds the kanidm client
|
|
# because @yaleman got tired but it's enough to prove
|
|
# it builds and be able to administer Kanidm from
|
|
# Windows-land
|
|
|
|
# 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:
|
|
windows_build_kanidm:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Install OpenSSL
|
|
run: |
|
|
vcpkg integrate install
|
|
vcpkg install openssl:x64-windows-static-md
|
|
- name: Install Rust
|
|
uses: dtolnay/rust-toolchain@stable
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.3
|
|
with:
|
|
version: "v0.4.2"
|
|
- run: cargo build -p kanidm_client -p kanidm_tools -p orca -p daemon
|
|
# yamllint disable-line rule:line-length
|
|
- run: cargo test -p kanidm_client -p kanidm_tools -p orca -p daemon -p kanidmd_core
|