Windows Build #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |