name: CI on: workflow_dispatch: push: branches: - 'master' - 'develop' - 'feature/**' pull_request: branches: - 'master' - 'develop' concurrency: # Cancel in-progress jobs for the same pull request group: ${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: build: strategy: matrix: include: - name: win64_msvc2022 os: windows-2022 build_type: Release compiler: msvc msvc_arch: x64 msvc_toolset: 14.34 msvc_version: 2022 qt_version: 6.4.2 qt_arch: win64_msvc2019_64 qt_tools: '' runs-on: ${{ matrix.os }} steps: - name: Setup run: git config --global core.longpaths true - name: Checkout uses: actions/checkout@v3 with: path: scwx submodules: recursive - name: Install Qt uses: jurplel/install-qt-action@v3 with: version: ${{ matrix.qt_version }} arch: ${{ matrix.qt_arch }} tools: ${{ matrix.qt_tools }} - name: Setup MSVC if: matrix.compiler == 'msvc' uses: ilammy/msvc-dev-cmd@v1 with: arch: ${{ matrix.msvc_arch }} toolset: ${{ matrix.msvc_toolset }} vsversion: ${{ matrix.msvc_version }} - name: Setup Python Environment run: | pip install conan geopandas conan profile new default --detect - name: Build Supercell Wx shell: pwsh run: | mkdir build cd build cmake ../scwx/ ` -G Ninja ` -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" ` -DCMAKE_INSTALL_PREFIX="../install" ninja supercell-wx wxtest - name: Test Supercell Wx working-directory: ${{ github.workspace }}/build run: ctest -C ${{ matrix.build_type }}