forked from kanidm/kanidm
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 959 Bytes
/
windows_build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
name: Windows Build and Test
# Trigger the workflow on push to master or pull request
"on":
push:
branches:
- master
pull_request:
workflow_dispatch: # so you can run it manually
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@v4
- 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/[email protected]
with:
version: "v0.4.2"
- run: cargo build -p kanidm_client -p kanidm_tools --bin kanidm
# yamllint disable-line rule:line-length
- run: cargo test -p kanidm_client -p kanidm_tools