Skip to content

Commit

Permalink
Try using powershell for the ninja build
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Mar 15, 2024
1 parent 1d0275f commit 2899f15
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1

- name: Configure
shell: cmd
shell: powershell
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Release -DENABLE_ALL=ON
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
Expand All @@ -54,9 +53,8 @@ jobs:
powershell Write-VolumeCache D
- name: Build
shell: cmd
shell: powershell
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cd build && ninja -j2 -v
# TODO - if the loading isn't too extreme, it would be good to do a BRL-CAD
Expand Down Expand Up @@ -88,9 +86,8 @@ jobs:
uses: ilammy/msvc-dev-cmd@v1

- name: Configure
shell: cmd
shell: powershell
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cmake -S . -B build -G Ninja -DCMAKE_C_COMPILER="cl.exe" -DCMAKE_CXX_COMPILER="cl.exe" -DCMAKE_BUILD_TYPE=Debug -DENABLE_ALL=ON
# We do the following in order to help ensure files are "flushed"
# to disk before compilation is attempted
Expand All @@ -99,9 +96,8 @@ jobs:
powershell Write-VolumeCache D
- name: Build
shell: cmd
shell: powershell
run: |
call "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat"
cd build && ninja -j2 -v
# TODO - if the loading isn't too extreme, it would be good to do a BRL-CAD
Expand Down

0 comments on commit 2899f15

Please sign in to comment.