|
| 1 | +name: Windows standard tests |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [ "develop" ] |
| 5 | + pull_request: |
| 6 | + branches: [ "develop" ] |
| 7 | +jobs: |
| 8 | + build-windows: |
| 9 | + runs-on: ${{ matrix.os }} |
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + #build_type: ["Debug", "Release"] |
| 14 | + #os: ["windows-2025", "windows-2022"] |
| 15 | + #static: ["true","false"] |
| 16 | + build_type: ["Debug"] |
| 17 | + os: ["windows-2022"] |
| 18 | + static: ["FALSE"] |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v6 |
| 21 | + - name: Setup |
| 22 | + shell: bash |
| 23 | + run: env |
| 24 | + - name: Set reusable strings |
| 25 | + # Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file. |
| 26 | + id: strings |
| 27 | + shell: bash |
| 28 | + run: | |
| 29 | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" |
| 30 | + - name: install boost boost-msvc-14.2 |
| 31 | + shell: bash |
| 32 | + if: ${{ matrix.os == 'windows-2025' }} |
| 33 | + run: | |
| 34 | + choco install -y boost-msvc-14.2 --version 1.74.0 |
| 35 | + echo "BOOST_ROOT=C:/local/boost_1_74_0" >> $GITHUB_ENV |
| 36 | + - name: install boost boost-msvc-14.1 |
| 37 | + shell: bash |
| 38 | + if: ${{ matrix.os == 'windows-2022' }} |
| 39 | + run: | |
| 40 | + choco install -y boost-msvc-14.1 --version 1.74.0 |
| 41 | + echo "BOOST_ROOT=C:/local/boost_1_74_0" >> $GITHUB_ENV |
| 42 | + - name: Configure |
| 43 | + working-directory: ${{ steps.strings.outputs.build-output-dir }} |
| 44 | + run: | |
| 45 | + cd build |
| 46 | + cmake .. -A x64 -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} |
| 47 | + -DSTATIC_RUNTIME:BOOL=${{matrix.static}} -DLCC_PROJECT_NAME:STRING=test |
| 48 | + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} |
| 49 | + -S ${{ github.workspace }} |
| 50 | + -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/install |
| 51 | + shell: bash |
| 52 | + - name: Compile |
| 53 | + working-directory: ${{ steps.strings.outputs.build-output-dir }} |
| 54 | + run: | |
| 55 | + cd build |
| 56 | + cmake --build . --target install --config ${{ matrix.build_type }} -S ${{ github.workspace }} |
| 57 | + shell: bash |
| 58 | + - name: Test |
| 59 | + run: | |
| 60 | + cd build |
| 61 | + ctest -C ${{ matrix.build_type }} |
| 62 | + shell: bash |
| 63 | + env: |
| 64 | + CTEST_OUTPUT_ON_FAILURE: 1 |
| 65 | + VIRTUAL_ENV: VM |
| 66 | + - name: Inspector |
| 67 | + run: C:/licensecc/bin/test/lccinspector.exe |
| 68 | + shell: bash |
| 69 | + |
| 70 | + - name: On Failure print logs |
| 71 | + if: ${{ failure() }} |
| 72 | + run: | |
| 73 | + type $env:temp/open-license.log |
| 74 | +
|
| 75 | + |
0 commit comments