28
28
if : runner.os == 'Linux'
29
29
run : |
30
30
sudo apt-get update || true
31
- sudo apt-get install -y build-essential libglu1-mesa-dev \
32
- mesa-common-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libboost-all-dev
31
+ sudo apt-get install -y build-essential libboost-all-dev
33
32
mkdir -p build && cd build
34
33
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
35
34
make
@@ -44,13 +43,34 @@ jobs:
44
43
cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
45
44
make
46
45
47
- # Set up environment and build on Windows
48
- - name : Build on Windows
46
+ # Set up Conda on Windows
47
+ - name : Set up Conda ( Windows)
49
48
if : runner.os == 'Windows'
50
- shell : cmd
49
+ uses : conda-incubator/setup-miniconda@v3
50
+ with :
51
+ architecture : x64
52
+ activate-environment : AdTreeEnv
53
+ auto-activate-base : false
54
+ channels : conda-forge,defaults
55
+
56
+ # Install Boost via Conda on Windows
57
+ - name : Install Dependencies (Windows)
58
+ if : runner.os == 'Windows'
59
+ shell : bash -l {0}
60
+ run : conda install -y boost
61
+
62
+ # Configure CMake on Windows
63
+ - name : Configure (Windows)
64
+ if : runner.os == 'Windows'
65
+ shell : bash -l {0}
51
66
run : |
52
- choco install boost cmake --installargs '"ADD_CMAKE_TO_PATH=System"'
53
- mkdir build
54
- cd build
55
- cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
56
- cmake --build . --config ${{ matrix.build_type }}
67
+ cmake -S . -B build/${{ matrix.build_type }} \
68
+ -G "Visual Studio 17 2022" \
69
+ -A x64 \
70
+ -DBOOST_ROOT="$CONDA_PREFIX/Library"
71
+
72
+ # Build on Windows
73
+ - name : Build (Windows)
74
+ if : runner.os == 'Windows'
75
+ shell : bash -l {0}
76
+ run : cmake --build build/${{ matrix.build_type }} --config ${{ matrix.build_type }}
0 commit comments