ci: shell powershell (5.x always present) + explicit cargo.exe path
This commit is contained in:
+10
-10
@@ -38,13 +38,13 @@ jobs:
|
|||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Verify Rust toolchain
|
- name: Verify Rust toolchain
|
||||||
shell: pwsh
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
rustc --version
|
rustc --version "C:SERSYOWIE.CARGOBIN
|
||||||
cargo --version
|
USTC.EXE" --VERSION
|
||||||
cargo --version "C:SERSYOWIE.CARGOBINRGO.EXE" --VERSION
|
cargo --version "C:SERSYOWIE.CARGOBINRGO.EXE" --VERSION
|
||||||
|
|
||||||
shell: pwsh
|
- name: Setup LLVM ${{ env.LLVM_VERSION }} (pinned, matches upstream rustdesk CI)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if (-not (Test-Path 'C:\LLVM16\bin\libclang.dll')) {
|
if (-not (Test-Path 'C:\LLVM16\bin\libclang.dll')) {
|
||||||
@@ -59,7 +59,7 @@ jobs:
|
|||||||
echo "LIBCLANG_PATH=C:\LLVM16\bin" >> $env:GITHUB_ENV
|
echo "LIBCLANG_PATH=C:\LLVM16\bin" >> $env:GITHUB_ENV
|
||||||
echo "C:\LLVM16\bin" >> $env:GITHUB_PATH
|
echo "C:\LLVM16\bin" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
shell: pwsh
|
- name: Setup vcpkg @ pinned commit ${{ env.VCPKG_COMMIT_ID }}
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if (-not (Test-Path 'C:\vcpkg\vcpkg.exe')) {
|
if (-not (Test-Path 'C:\vcpkg\vcpkg.exe')) {
|
||||||
@@ -73,17 +73,17 @@ jobs:
|
|||||||
echo "VCPKG_ROOT=C:\vcpkg" >> $env:GITHUB_ENV
|
echo "VCPKG_ROOT=C:\vcpkg" >> $env:GITHUB_ENV
|
||||||
echo "C:\vcpkg" >> $env:GITHUB_PATH
|
echo "C:\vcpkg" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
shell: pwsh
|
- name: Install vcpkg native deps (libvpx libyuv opus aom libjpeg-turbo, x64-windows-static)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
C:\vcpkg\vcpkg.exe install --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
C:\vcpkg\vcpkg.exe install --triplet x64-windows-static libvpx libyuv opus aom libjpeg-turbo
|
||||||
- name: cargo build --release (Sciter UI, no flutter, no hwcodec)
|
|
||||||
shell: pwsh
|
- name: cargo build "C:SERSYOWIE.CARGOBINRGO.EXE" BUILD --release (Sciter UI, no flutter, no hwcodec)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
cargo build --release --no-default-features --features inline
|
run: |
|
||||||
cargo build "C:SERSYOWIE.CARGOBINRGO.EXE" BUILD --release --no-default-features --features inline
|
cargo build "C:SERSYOWIE.CARGOBINRGO.EXE" BUILD --release --no-default-features --features inline
|
||||||
|
|
||||||
shell: pwsh
|
- name: Verify binary + show patch line is in built source
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$exe = "target\release\rustdesk.exe"
|
$exe = "target\release\rustdesk.exe"
|
||||||
|
|||||||
Reference in New Issue
Block a user