-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (39 loc) · 1.1 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
name: Windows Build
on:
push:
branches:
- master
paths-ignore:
- "README.md"
- ".github/workflows/**"
- ".gitignore"
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout
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: Add rust target
run: rustup target add wasm32-unknown-emscripten
- name: Install bindgen
run: cargo install cbindgen
- name: Configure CMake
uses: threeal/[email protected]
with:
source-dir: build/Windows
build-dir: build/Windows/Release
options: "CMAKE_BUILD_TYPE=Release"
- name: Build project
run: cmake --build build/Windows/Release --config Release