Repository navigation
Bump github/codeql-action/autobuild from 4.37.3 to 4.37.7 #2683
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
| name: CMake (macOS) | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| BUILD_TYPE: RelWithDebInfo | |
| BUILD_DIR: build | |
| BUILD_NUMBER: ${{github.run_number}} | |
| QT_QPA_PLATFORM: offscreen | |
| CMAKE_BUILD_PARALLEL_LEVEL: 3 | |
| MACOSX_DEPLOYMENT_TARGET: 14.0 | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| timeout-minutes: 120 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: recursive | |
| persist-credentials: false | |
| - name: Cache vcpkg | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ${{ github.workspace }}/vcpkg_cache | |
| key: ${{ runner.os }}-${{ runner.arch }}-vcpkg-${{ hashFiles('lib/libelectronic-id/vcpkg.json', '.github/vcpkg-triplets/arm64-x64-osx.cmake') }} | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@48d3ad6db93f3627c8ee7a0454bc6f3744f7e730 # v4.3.1 | |
| with: | |
| version: 6.10.3 | |
| arch: clang_64 | |
| cache: true | |
| - name: Configure | |
| env: | |
| VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite | |
| run: | | |
| export VCPKG_ROOT="${VCPKG_INSTALLATION_ROOT}" | |
| cmake -S . -B "${BUILD_DIR}" \ | |
| -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \ | |
| -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \ | |
| -DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake" \ | |
| -DVCPKG_MANIFEST_DIR="${GITHUB_WORKSPACE}/lib/libelectronic-id" \ | |
| -DVCPKG_OVERLAY_TRIPLETS="${GITHUB_WORKSPACE}/.github/vcpkg-triplets" \ | |
| -DVCPKG_TARGET_TRIPLET=arm64-x64-osx | |
| - name: Build | |
| run: | | |
| cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} | |
| cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} --target installer | |
| cmake --build ${BUILD_DIR} --config ${BUILD_TYPE} --target installer-safari | |
| - name: Test | |
| run: ctest -V -C ${BUILD_TYPE} --test-dir ${BUILD_DIR} | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: web-eid-app-macos-build-${{github.run_number}} | |
| path: | | |
| build/src/app/*.pkg | |
| build/src/app/*.dmg |