Skip to content

Commit

Permalink
CI: add msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
KangLin committed Feb 28, 2025
1 parent 2f46164 commit 6671fef
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,31 @@ jobs:
name: Windows
path: build/release/tigervnc*.exe

build-windows-msvc:
runs-on: windows-latest
timeout-minutes: 20
env:
SOURCE_DIR: ${{github.workspace}}\.cache\source
steps:
- uses: actions/checkout@v4
- name: Make folder
run: cmake -E make_directory ${{env.SOURCE_DIR}}
- name: run-vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: f63682b9182187131b564c1395e4ac8ecb0c5ea8
vcpkgDirectory: ${{env.SOURCE_DIR}}/vcpkg
- name: Configure
run: cmake -DCMAKE_BUILD_TYPE=Debug -S . -B build ^
-DCMAKE_INSTALL_PREFIX=install ^
-DCMAKE_TOOLCHAIN_FILE="${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake"
- name: Build
working-directory: build
run: cmake --build .
- name: Install applications
working-directory: build
run: cmake --Install . --component Runtime

build-macos:
runs-on: macos-latest
timeout-minutes: 20
Expand Down
14 changes: 14 additions & 0 deletions vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "tigervnc",
"version-string":"0.0.1",
"dependencies": [
"zlib",
"openssl",
"libjpeg-turbo",
"libpng",
"pixman",
"ffmpeg",
"nettle",
"fltk"
]
}

0 comments on commit 6671fef

Please sign in to comment.