Skip to content

Commit

Permalink
github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
irrld committed Oct 13, 2023
1 parent 6660bb5 commit 373c846
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:

steps:
- uses: actions/checkout@v3
# path: ${{github.workspace}}/glist/myglistapps/${{github.repository}}

- name: checkout submodule
run: |
Expand All @@ -37,7 +38,19 @@ jobs:
run: |
echo "D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/clang64/bin" >> $GITHUB_PATH
echo "D:/a/chesstacos/chesstacos/zbin/glistzbin-win64/CMake/bin" >> $GITHUB_PATH
shell: cmd
echo "C:/Windows/System32" >> $GITHUB_PATH
echo "C:/Windows" >> $GITHUB_PATH
shell: powershell

- name: Debug PATH
run: echo $PATH > path.txt
shell: powershell

- name: Upload PATH File
uses: actions/upload-artifact@v2
with:
name: path-debug
path: path.txt

- name: Clone GlistEngine
uses: GuillaumeFalourd/[email protected]
Expand Down Expand Up @@ -72,17 +85,14 @@ jobs:
- 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
ls "C:/ProgramData/chocolatey/bin"
ls "C:/Windows/System32"
- 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 "Ninja" -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" -DCMAKE_MAKE_PROGRAM="C:/ProgramData/chocolatey/bin/ninja.exe" -G "Ninja" -S .

- name: Build
# Build your program with the given configuration
run: cmake --build 'D:/a/chesstacos/chesstacos/build' --config ${{env.BUILD_TYPE}}
run: cmake --build "D:/a/chesstacos/chesstacos/build" --config ${{env.BUILD_TYPE}}


0 comments on commit 373c846

Please sign in to comment.