From 3bd9da5c62464f6ec1f96eb7b96882b66aefe4fd Mon Sep 17 00:00:00 2001 From: songruining Date: Thu, 21 Nov 2024 17:56:14 +0800 Subject: [PATCH] chore: action --- .github/workflows/publish.yml | 4 ++++ CMakePresets.json | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 69d0773..625d43c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -30,6 +30,10 @@ jobs: with: repository: luau-lang/luau path: luau + - name: install compiler + run: | + choco install ninja + choco install llvm - name: configure run: cmake -DCPP_DAP_ROOT=${{ github.workspace }}/cppdap -DLUAU_ROOT=${{ github.workspace }}/luau -S . -B build --preset publish-configure - name: build diff --git a/CMakePresets.json b/CMakePresets.json index 07e524d..cc19e10 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -23,11 +23,14 @@ { "name": "publish-configure", "displayName": "publish-configure", - "generator": "Visual Studio 17 2022", + "generator": "Ninja", "binaryDir": "${sourceDir}/build", "cacheVariables": { "CPPDAP_BUILD_EXAMPLES": "ON", - "LUAU_BUILD_TESTS": "OFF" + "LUAU_BUILD_TESTS": "OFF", + "CMAKE_CXX_COMPILER": "clang++.exe", + "CMAKE_C_COMPILER": "clang.exe", + "CMAKE_RC_COMPILER": "llvm-rc.exe" } } ],