Fix crash on startup when no configuration exists yet #14
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: PR Build | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: ["**"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: pr-cmake-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.arch }} Debug | |
| runs-on: windows-2022 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - arch: x64 | |
| cmake_arch: x64 | |
| - arch: x86 | |
| cmake_arch: Win32 | |
| defaults: | |
| run: | |
| shell: pwsh | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Register MSVC problem matcher | |
| uses: ammaraskar/msvc-problem-matcher@master | |
| - name: Configure CMake (${{ matrix.arch }}) | |
| run: cmake -B build -A ${{ matrix.cmake_arch }} -DSAL_UNDER_CI=ON -DSAL_BUILD_DEMOPLUG=OFF | |
| - name: Build Debug | |
| run: cmake --build build --config Debug -j | |
| - name: Run tests | |
| run: ctest --test-dir build -C Debug --output-on-failure | |
| - name: Populate x64 runtime | |
| if: matrix.arch == 'x64' | |
| run: cmake --build build --config Debug --target populate -j | |
| - name: Verify x64 translation workspace | |
| if: matrix.arch == 'x64' | |
| run: | | |
| $workspaceDir = "build/translation-workspace-ci" | |
| Remove-Item -Recurse -Force $workspaceDir -ErrorAction SilentlyContinue | |
| & .\tools\localization\prepare_translation_workspace.ps1 ` | |
| -BuildRoot .\build\out\sally\Debug_x64 ` | |
| -OutputDir $workspaceDir ` | |
| -Languages czech,slovak ` | |
| -ImportArchives ` | |
| -Force | |
| & .\tools\localization\verify_translation_workspace.ps1 ` | |
| -WorkspaceDir $workspaceDir | |
| - name: Upload x64 translation verification artifact | |
| if: failure() && matrix.arch == 'x64' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Sally-translation-workspace-debug | |
| path: build/translation-workspace-ci/ | |
| if-no-files-found: ignore |