-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.31 KB
/
Windows-cmake.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Windows Build
# Controls when the workflow will run
# Triggers the workflow on push or pull request events and manually from the Actions tab
on:
push:
branches:
- master
paths-ignore:
- "README.md"
- ".github/workflows/**"
- ".gitignore"
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/[email protected]
with:
submodules: "recursive"
- name: Configure Windows SDK
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2
with:
sdk-version: 22000
- name: Configure MSVC
uses: ilammy/[email protected]
with:
arch: amd64
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: "x86_64-pc-windows-msvc, wasm32-unknown-emscripten"
- name: Install bindgen
run: cargo install cbindgen
- name: Run CMake
uses: threeal/[email protected]
with:
run-build: true
source-dir: build/Windows
build-dir: build/Windows/Release
options: "CMAKE_BUILD_TYPE=Release"
build-args: "--config Release"