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,32 +36,34 @@ 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.compiler }}-${{ matrix.os }}-${{ github.sha }}
50+ restore-keys : ccache-windows-conda-${{ matrix.compiler }}-${{ matrix.os }}-
51+
2652 - uses : conda-incubator/setup-miniconda@v3
2753 with :
2854 activate-environment : eigenpy
2955 auto-update-conda : true
30- environment-file : .github/workflows/conda/environment_windows .yml
56+ environment-file : .github/workflows/conda/environment_all .yml
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 : |
43- :: start building
44- call "%programfiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64
45- if errorlevel 1 exit 1
66+ call conda list
4667
4768 mkdir build
4869 pushd build
@@ -57,14 +78,17 @@ jobs:
5778 ..
5879 if errorlevel 1 exit 1
5980
60- :: Build and Install
61- cmake --build . -j3 --config Release --target install
81+ :: Build
82+ cmake --build . -j4
6283 if errorlevel 1 exit 1
6384
6485 :: Testing
65- ctest --output-on-failure -C Release -V
86+ ctest --output-on-failure
6687 if errorlevel 1 exit 1
6788
89+ :: Install
90+ cmake --install .
91+
6892 :: Test Python import
6993 cd ..
7094 python -c "import eigenpy"
0 commit comments