Skip to content

Commit 368032e

Browse files
committed
ci: add vcpkg.json
1 parent 3afb879 commit 368032e

File tree

4 files changed

+40
-3
lines changed

4 files changed

+40
-3
lines changed

.github/workflows/rust.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Rust
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
branches: ["master"]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
- name: Setup vcpkg
20+
uses: lukka/run-vcpkg@v11
21+
with:
22+
vcpkgDirectory: "${{ github.workspace }}/third-party/vcpkg"
23+
runVcpkgInstall: true
24+
vcpkgJsonGlob: "**/vcpkg.json"
25+
env:
26+
VCPKG_DEFAULT_TRIPLET: x64-windows-static-md
27+
- name: Build
28+
run: cargo build --verbose
29+
- name: Run tests
30+
run: cargo test --verbose

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "third-party/imgui-win32-sys/imgui"]
2-
path = third-party/imgui-win32-sys/imgui
3-
url = https://github.com/ocornut/imgui.git
1+
[submodule "third-party/vcpkg"]
2+
path = third-party/vcpkg
3+
url = http://github.com/Microsoft/vcpkg

third-party/vcpkg

Submodule vcpkg added at d9ccd77

vcpkg.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
3+
"dependencies": [
4+
"freetype"
5+
]
6+
}

0 commit comments

Comments
 (0)