17
17
pre-commit :
18
18
runs-on : ubuntu-latest
19
19
steps :
20
- - uses : actions/checkout@v3
20
+ - uses : actions/checkout@v4
21
21
-
uses :
pre-commit/[email protected]
22
22
23
23
unix :
@@ -29,26 +29,26 @@ jobs:
29
29
os : [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
30
30
31
31
steps :
32
- - uses : actions/checkout@v3
32
+ - uses : actions/checkout@v4
33
33
34
- - name : Install mamba
35
- uses : mamba-org/provision-with-micromamba@main
34
+ - name : Get number of CPU cores
35
+ uses : SimenB/github-actions-cpu-cores@v2
36
+
37
+ - name : Install micromamba
38
+ uses : mamba-org/setup-micromamba@v1
36
39
with :
37
40
environment-file : environment-dev.yml
38
- environment-name : xwidgets
39
41
40
42
- name : Cmake configure
41
- shell : bash -l -eo pipefail {0}
42
- run : >
43
- cmake -B build -Werror=dev
44
- ${CMAKE_ARGS}
45
- -D CMAKE_BUILD_TYPE=Release
46
- -D XWIDGETS_BUILD_TESTS=ON
47
- -D CMAKE_PREFIX_PATH="${CONDA_PREFIX}"
43
+ run : |
44
+ cmake -B build -Werror=dev \
45
+ ${CMAKE_ARGS} \
46
+ -D CMAKE_BUILD_TYPE=Release \
47
+ -D XWIDGETS_BUILD_TESTS=ON \
48
+ -D CMAKE_PREFIX_PATH="${CONDA_PREFIX}" \
48
49
-D CMAKE_INSTALL_PREFIX="${CONDA_PREFIX}"
49
50
50
51
- name : Build
51
- shell : bash -l -eo pipefail {0}
52
52
run : cmake --build build/ --parallel 2
53
53
54
54
- name : Test xwidgets
@@ -82,27 +82,20 @@ jobs:
82
82
os : [windows-2019, windows-2022]
83
83
84
84
steps :
85
- - uses : actions/checkout@v2
85
+ - uses : actions/checkout@v4
86
86
87
- - name : install mamba
88
- uses : mamba-org/provision-with- micromamba@main
87
+ - name : Install micromamba
88
+ uses : mamba-org/setup- micromamba@v1
89
89
with :
90
+ init-shell : cmd.exe
90
91
environment-file : environment-dev.yml
91
- environment-name : xwidgets
92
-
93
- - name : micromamba shell hook
94
- shell : powershell
95
- run : |
96
- micromamba shell hook -s cmd.exe -p C:\Users\runneradmin\micromamba-root
97
92
98
93
- name : Make build directory
99
94
run : mkdir build
100
95
101
96
- name : Cmake configure
102
97
shell : cmd /C call {0}
103
98
run : |
104
- call micromamba activate xwidgets
105
- if %errorlevel% neq 0 exit /b %errorlevel%
106
99
cmake -B build -Werror=dev ^
107
100
-G Ninja ^
108
101
-D CMAKE_BUILD_TYPE=Release ^
@@ -125,6 +118,5 @@ jobs:
125
118
max_attempts : 4
126
119
shell : cmd
127
120
command : |
128
- call C:\Users\runneradmin\micromamba-root\condabin\micromamba.bat activate xwidgets
129
121
set PATH=%CONDA_PREFIX%;%CONDA_PREFIX%\\Scripts;%CONDA_PREFIX%\\Library;%CONDA_PREFIX%\\Library\\bin;%PATH%
130
122
ctest --test-dir build/test --output-on-failure
0 commit comments