Skip to content

Commit 8add9f7

Browse files
fix windows bot
1 parent b35dde3 commit 8add9f7

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

‎.github/workflows/builds.yml‎

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
# Used by LiveKitSDK.cmake when VERSION=latest (it looks for env GITHUB_TOKEN by default)
1211
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1312

1413
jobs:
@@ -58,16 +57,20 @@ jobs:
5857
run: |
5958
choco install -y cmake --installargs 'ADD_CMAKE_TO_PATH=System'
6059
choco install -y ninja
61-
# curl is available on windows-latest; no need for jq/unzip since CMake does the download/extract.
60+
61+
- name: Setup MSVC (Windows)
62+
if: runner.os == 'Windows'
63+
uses: ilammy/msvc-dev-cmd@v1
64+
with:
65+
arch: x64
6266

6367
# ---------- configure + build ----------
6468
- name: Configure (Unix)
6569
if: runner.os != 'Windows'
6670
shell: bash
6771
run: |
6872
set -eux
69-
cmake -S . -B build -G Ninja \
70-
-DCMAKE_BUILD_TYPE=Release
73+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
7174
7275
- name: Build (Unix)
7376
if: runner.os != 'Windows'
@@ -80,7 +83,10 @@ jobs:
8083
if: runner.os == 'Windows'
8184
shell: pwsh
8285
run: |
83-
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
86+
cmake -S . -B build -G Ninja `
87+
-DCMAKE_BUILD_TYPE=Release `
88+
-DCMAKE_C_COMPILER=cl `
89+
-DCMAKE_CXX_COMPILER=cl
8490
8591
- name: Build (Windows)
8692
if: runner.os == 'Windows'
@@ -89,14 +95,11 @@ jobs:
8995
cmake --build build --config Release
9096
9197
# ---------- smoke test ----------
92-
# LiveKitSDK.cmake typically extracts into: build/_deps/livekit-sdk/<bundle-root>
93-
# We’ll locate the extracted SDK root robustly and set runtime env vars from it.
9498
- name: Smoke test (Linux/macOS)
9599
if: runner.os != 'Windows'
96100
shell: bash
97101
run: |
98102
set -eux
99-
100103
sdk_root="$(ls -d build/_deps/livekit-sdk/* | head -n 1)"
101104
echo "SDK root: ${sdk_root}"
102105
ls -la "${sdk_root}/lib" || true
@@ -113,13 +116,11 @@ jobs:
113116
if: runner.os == 'Windows'
114117
shell: pwsh
115118
run: |
116-
$sdkRoot = Get-ChildItem -Directory "build\_deps\livekit-sdk" | Select-Object -First 1
117-
if (-not $sdkRoot) { throw "SDK root not found under build\_deps\livekit-sdk" }
119+
$sdkRoot = Get-ChildItem -Directory "build/_deps/livekit-sdk" | Select-Object -First 1
120+
if (-not $sdkRoot) { throw "SDK root not found under build/_deps/livekit-sdk" }
118121
Write-Host "SDK root: $($sdkRoot.FullName)"
119122
120-
# Prefer bin first; keep lib too (some packages put dlls in lib)
121123
$env:PATH = "$($sdkRoot.FullName)\bin;$($sdkRoot.FullName)\lib;$env:PATH"
122-
123124
.\build\basic_room.exe --help 2>$null
124125
125126
# ---------- upload build output ----------

0 commit comments

Comments
 (0)