File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,26 +5,30 @@ on: [push]
55jobs :
66 build-and-test :
77 runs-on : windows-latest
8-
8+
99 steps :
1010 - name : Checkout code
1111 uses : actions/checkout@v4
1212
13- - name : Install dependencies (Make + MinGW)
13+ - name : Install dependencies
1414 shell : pwsh
1515 run : |
16- choco install make mingw -y
17- echo "C:\ProgramData\chocolatey\lib\make\tools\install\ bin" | Out-File -FilePath $env:GITHUB_PATH -Append
18- echo "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
16+ choco install cmake mingw -y
17+ Add-Content $env:GITHUB_PATH "C:\Program Files\CMake\ bin"
18+ Add-Content $env:GITHUB_PATH "C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin"
1919
20- - name : Build with Make
20+ - name : Set up MinGW environment
2121 shell : pwsh
2222 run : |
23- cd build
24- make
23+ $env:PATH = "C:\msys64\mingw64\bin;" + $env:PATH
24+ echo "MinGW path set"
2525
26- - name : Run tests
26+ - name : Build with CMake
2727 shell : pwsh
2828 run : |
29- cd build
30- .\libprocman.exe
29+ cmake .. -G "MinGW Makefiles" -DCMAKE_C_COMPILER="C:/msys64/mingw64/bin/gcc.exe" -DCMAKE_CXX_COMPILER="C:/msys64/mingw64/bin/g++.exe"
30+ cmake --build .
31+
32+ - name : Run tests
33+ run : |
34+ ./build/libprocman.exe
You can’t perform that action at this time.
0 commit comments