From 6660bb552b4dd1ce57ec84ac477ac9acf62293f0 Mon Sep 17 00:00:00 2001 From: Metehan Gezer Date: Fri, 13 Oct 2023 15:05:16 +0300 Subject: [PATCH] github actions --- .github/workflows/build-windows.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 48634d5..3013b00 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -69,11 +69,17 @@ jobs: # cd ${{github.workspace}} # tree /f - - name: Configure CMake + - name: Set up Ninja + run: | + choco install ninja + echo "::add-path::C:/ProgramData/chocolatey/bin" # Add Ninja to PATH + echo "::set-env name=ENV_FILE::env.list" # Set the environment file + + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type - run: cmake -B 'D:/a/chesstacos/chesstacos/build' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTOP_DIR='D:/a/chesstacos/chesstacos' -DCMAKE_C_COMPILER="D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/clang64/bin/clang.exe" -DCMAKE_CXX_COMPILER="D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/clang64/bin/clang++.exe" -G "Visual Studio 17 2022" -S . + run: cmake -B 'D:/a/chesstacos/chesstacos/build' -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DTOP_DIR='D:/a/chesstacos/chesstacos' -DCMAKE_C_COMPILER="D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/clang64/bin/clang.exe" -DCMAKE_CXX_COMPILER="D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/clang64/bin/clang++.exe" -G "Ninja" -S . - name: Build # Build your program with the given configuration