- run: cmake --build build -j2 --target test
- - name: Install
- run: cmake --build build -j2 --target install -- DESTDIR=/tmp
+ if: env.BUILD_TESTING == 'ON'
+ run: |
+ cmake --build build -j2 --target test
+ cmake --build build -j2 --target install -- DESTDIR=/tmp