|
|
|
@ -12,11 +12,12 @@ jobs: |
|
|
|
|
os: ubuntu-latest |
|
|
|
|
compiler: gcc |
|
|
|
|
|
|
|
|
|
- name: Ubuntu GCC ISB |
|
|
|
|
# Test out of source builds |
|
|
|
|
- name: Ubuntu GCC OSB |
|
|
|
|
os: ubuntu-latest |
|
|
|
|
compiler: gcc |
|
|
|
|
build-dir: "." |
|
|
|
|
src-dir: "." |
|
|
|
|
build-dir: ../build |
|
|
|
|
src-dir: ../zlib |
|
|
|
|
|
|
|
|
|
- name: Ubuntu Clang |
|
|
|
|
os: ubuntu-latest |
|
|
|
@ -50,13 +51,13 @@ jobs: |
|
|
|
|
uses: actions/checkout@v3 |
|
|
|
|
|
|
|
|
|
- name: Generate project files |
|
|
|
|
run: cmake -S ${{ matrix.src-dir || '../zlib' }} -B ${{ matrix.build-dir || '../build' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} |
|
|
|
|
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || '.' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} |
|
|
|
|
env: |
|
|
|
|
CC: ${{ matrix.compiler }} |
|
|
|
|
|
|
|
|
|
- name: Compile source code |
|
|
|
|
run: cmake --build ${{ matrix.build-dir || '../build' }} --config ${{ matrix.build-config || 'Release' }} |
|
|
|
|
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }} |
|
|
|
|
|
|
|
|
|
- name: Run test cases |
|
|
|
|
run: ctest -C Release --output-on-failure --max-width 120 |
|
|
|
|
working-directory: ${{ matrix.build-dir || '../build' }} |
|
|
|
|
working-directory: ${{ matrix.build-dir || '.' }} |
|
|
|
|