1- name : Build Eigenpy on Windows via Conda
2- on : [push,pull_request]
1+ name : CI - Windows via Conda
2+
3+ on :
4+ push :
5+ paths-ignore :
6+ - ' doc/**'
7+ - ' .gitlab-ci.yml'
8+ - ' .gitignore'
9+ - ' *.md'
10+ - ' LICENSE'
11+ - ' colcon.pkg'
12+ - ' .pre-commit-config.yaml'
13+ pull_request :
14+ paths-ignore :
15+ - ' doc/**'
16+ - ' .gitlab-ci.yml'
17+ - ' .gitignore'
18+ - ' *.md'
19+ - ' LICENSE'
20+ - ' colcon.pkg'
21+ - ' .pre-commit-config.yaml'
322concurrency :
423 group : ${{ github.workflow }}-${{ github.ref }}
524 cancel-in-progress : true
@@ -17,12 +36,19 @@ jobs:
1736 fail-fast : false
1837 matrix :
1938 os : [windows-latest]
39+ compiler : ["cl", "clang-cl"]
2040
2141 steps :
2242 - uses : actions/checkout@v4
2343 with :
2444 submodules : recursive
2545
46+ - uses : actions/cache@v4
47+ with :
48+ path : .ccache
49+ key : ccache-windows-conda-${{ matrix.os }}-${{ github.sha }}
50+ restore-keys : ccache-windows-conda-${{ matrix.os }}-
51+
2652 - uses : conda-incubator/setup-miniconda@v3
2753 with :
2854 activate-environment : eigenpy
@@ -31,15 +57,14 @@ jobs:
3157 python-version : " 3.10"
3258 auto-activate-base : false
3359
34- - uses : actions/cache@v3
35- with :
36- path : .ccache
37- key : ccache-windows-conda-${{ matrix.os }}-${{ github.sha }}
38- restore-keys : ccache-windows-conda-${{ matrix.os }}-
39-
4060 - name : Build Eigenpy
4161 shell : cmd /C CALL {0}
62+ env :
63+ CC : ${{ matrix.compiler }}
64+ CXX : ${{ matrix.compiler }}
4265 run : |
66+ call conda list
67+
4368 :: start building
4469 call "%programfiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
4570 if errorlevel 1 exit 1
@@ -57,14 +82,17 @@ jobs:
5782 ..
5883 if errorlevel 1 exit 1
5984
60- :: Build and Install
61- cmake --build . -j3 --config Release --target install
85+ :: Build
86+ cmake --build . -j3
6287 if errorlevel 1 exit 1
6388
6489 :: Testing
65- ctest --output-on-failure -C Release -V
90+ ctest --output-on-failure
6691 if errorlevel 1 exit 1
6792
93+ :: Install
94+ cmake --install .
95+
6896 :: Test Python import
6997 cd ..
7098 python -c "import eigenpy"
0 commit comments