Bump github/codeql-action/autobuild from 4.36.2 to 4.37.0 #1032
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # taken from https://github.com/onqtam/doctest/blob/master/.github/workflows/main.yml | |
| name: C/C++ CI | |
| on: | |
| push: | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| inputs: | |
| job_to_run: | |
| description: 'Select the job to run manually' | |
| type: 'choice' | |
| options: | |
| - 'test' | |
| - 'test_arm32' | |
| - 'test_msys2' | |
| - 'test_s390x' | |
| - 'test_windows' | |
| - 'test_windows_on_arm' | |
| - 'test_ppc64le' | |
| default: '' | |
| log_level: | |
| description: 'Log level' | |
| required: false | |
| default: 'info' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build_mac: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: [ | |
| { system: MacOS Dual Build, runner: macos-latest }, | |
| ] | |
| name: ${{ matrix.system }}) | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: cmake | |
| run: cmake -DOJPH_BUILD_STREAM_EXPAND=ON -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" -DOJPH_ENABLE_TIFF_SUPPORT=OFF .. | |
| working-directory: build | |
| - name: build | |
| run: make | |
| working-directory: build | |
| test: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: [ | |
| { system: MacOS-Intel-gcc, runner: macos-15-intel, cc: gcc, cxx: g++ }, | |
| { system: MacOS-Intel-clang, runner: macos-15-intel, cc: clang, cxx: clang++ }, | |
| { system: MacOS-latest-gcc, runner: macos-latest, cc: gcc, cxx: g++ }, | |
| { system: MacOS-latest-clang, runner: macos-latest, cc: clang, cxx: clang++ }, | |
| { system: Ubuntu-22-gcc, runner: ubuntu-22.04, cc: gcc, cxx: g++ }, | |
| { system: Ubuntu-22-clang, runner: ubuntu-22.04, cc: clang, cxx: clang++ }, | |
| { system: Ubuntu-latest-gcc, runner: ubuntu-latest, cc: gcc, cxx: g++ }, | |
| { system: Ubuntu-latest-clang, runner: ubuntu-latest, cc: clang, cxx: clang++ }, | |
| ] | |
| name: ${{ matrix.system }} Build and Test | |
| runs-on: ${{ matrix.runner }} | |
| env: | |
| CC: ${{ matrix.cc }} | |
| CXX: ${{ matrix.cxx }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: cmake | |
| run: cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_BUILD_TESTS=ON .. | |
| working-directory: build | |
| - name: build | |
| run: make | |
| working-directory: build | |
| - name: test | |
| run: ctest --output-on-failure | |
| working-directory: build | |
| test_windows: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_windows' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: [ | |
| { system: Windows, runner: windows-latest }, | |
| ] | |
| name: ${{ matrix.system }} Build and Test | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: cmake | |
| run: cmake -A x64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON .. | |
| working-directory: build | |
| - name: build | |
| run: cmake --build . --config Release | |
| working-directory: build | |
| - name: test | |
| run: ctest --output-on-failure -C Release | |
| working-directory: build | |
| test_msys2: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_msys2' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: [ | |
| { system: Windows-MSYS2-UCRT64, runner: windows-latest, msystem: UCRT64 }, | |
| { system: Windows-MinGW32, runner: windows-latest, msystem: MINGW32 }, | |
| ] | |
| defaults: | |
| run: | |
| shell: msys2 {0} | |
| name: ${{ matrix.system }} Build and Test | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: msys2/setup-msys2@66cd2cce69caa17b53920067426061ca1de3a884 #v2.32.0 | |
| with: | |
| msystem: ${{ matrix.msystem }} | |
| update: false | |
| pacboy: cc:p cmake:p python:p | |
| - name: cmake | |
| run: cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON -DPython3_EXECUTABLE=${MINGW_PREFIX}/bin/python.exe .. | |
| working-directory: build | |
| - name: build | |
| run: cmake --build . --config Release | |
| working-directory: build | |
| - name: test | |
| run: ctest --output-on-failure -C Release | |
| working-directory: build | |
| test_windows_on_arm: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_windows_on_arm' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: [ | |
| { system: WindowsOnARM, runner: windows-11-arm }, | |
| ] | |
| name: ${{ matrix.system }} Build and Test | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: cmake | |
| run: cmake -A ARM64 -DOJPH_ENABLE_TIFF_SUPPORT=OFF -DOJPH_BUILD_TESTS=ON .. | |
| working-directory: build | |
| - name: build | |
| run: cmake --build . --config Release | |
| working-directory: build | |
| - name: test | |
| run: ctest --output-on-failure -C Release | |
| working-directory: build | |
| test_arm32: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_arm32' }} | |
| name: Linux-ARM32 Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: uraimo/run-on-arch-action@f9b26e3a1a408d5fd530d20c17b9f3f4428ff8d9 #3.1.0 | |
| with: | |
| arch: armv7 | |
| distro: ubuntu22.04 | |
| githubToken: ${{ github.token }} | |
| install: | | |
| apt-get update -q -y | |
| apt-get install -q -y cmake make g++ libtiff-dev python3 | |
| run: | | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_BUILD_STREAM_EXPAND=ON -DOJPH_ENABLE_TIFF_SUPPORT=ON -DOJPH_BUILD_TESTS=ON .. | |
| make | |
| ctest --output-on-failure | |
| test_s390x: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_s390x' }} | |
| name: Linux-s390x (big-endian) Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: uraimo/run-on-arch-action@f9b26e3a1a408d5fd530d20c17b9f3f4428ff8d9 #3.1.0 | |
| with: | |
| arch: s390x | |
| distro: ubuntu22.04 | |
| githubToken: ${{ github.token }} | |
| install: | | |
| apt-get update -q -y | |
| apt-get install -q -y cmake make g++ libtiff-dev python3 | |
| run: | | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_BUILD_STREAM_EXPAND=ON -DOJPH_ENABLE_TIFF_SUPPORT=ON -DOJPH_BUILD_TESTS=ON .. | |
| make | |
| ctest --output-on-failure | |
| test_ppc64le: | |
| if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job_to_run == '' || github.event.inputs.job_to_run == 'test_ppc64le' }} | |
| name: Linux-PowerPC64LE (little-endian) Build and Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: [ { dist: ubuntu22.04 }, { dist: ubuntu_latest } ] | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 #v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: uraimo/run-on-arch-action@f9b26e3a1a408d5fd530d20c17b9f3f4428ff8d9 #3.1.0 | |
| with: | |
| arch: s390x | |
| distro: ${{ matrix.dist }} | |
| githubToken: ${{ github.token }} | |
| install: | | |
| apt-get update -q -y | |
| apt-get install -q -y cmake make g++ libtiff-dev python3 | |
| run: | | |
| cd build | |
| cmake -DCMAKE_BUILD_TYPE=Release -DOJPH_BUILD_STREAM_EXPAND=ON -DOJPH_ENABLE_TIFF_SUPPORT=ON -DOJPH_BUILD_TESTS=ON .. | |
| make | |
| ctest --output-on-failure |