Commit 30662ea LAGNEAU Romain
committed
1 parent f73469c commit 30662ea Copy full SHA for 30662ea
File tree 1 file changed +14
-3
lines changed
1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
- name : MacOS
1
+ name : MacOS-Linux-Namespace
2
2
3
3
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events
4
4
on :
18
18
fail-fast : false
19
19
matrix :
20
20
os : ["ubuntu-latest", "macos-latest"]
21
+ build_type : [Release]
21
22
22
23
steps :
23
24
- name : Checkout repository
@@ -95,10 +96,20 @@ jobs:
95
96
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/tmp/usr/local -DCMAKE_VERBOSE_MAKEFILE=ON -DENABLE_VISP_NAMESPACE=ON -DENABLE_EXPLICIT_KEYWORD=ON -DVISP_BUILD_DEPRECATED_FUNCTIONS=OFF
96
97
cat ViSP-third-party.txt
97
98
99
+ - name : Determine number of processor on Ubuntu
100
+ if : matrix.os == 'ubuntu-latest'
101
+ run : |
102
+ echo "NPROC=$(nproc)" >> $GITHUB_ENV
103
+
104
+ - name : Determine number of processor on MacOS
105
+ if : matrix.os == 'macos-latest'
106
+ run : |
107
+ echo "NPROC=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
108
+
98
109
- name : Compile
99
110
working-directory : build
100
- run : make -j$(sysctl -n hw.logicalcpu) install
111
+ run : make -j${NPROC} install
101
112
102
113
- name : Run unit tests
103
114
working-directory : build
104
- run : ctest -j$(sysctl -n hw.logicalcpu) --output-on-failure -V
115
+ run : ctest -j${NPROC} --output-on-failure -V
You can’t perform that action at this time.
0 commit comments