Feature/runtime meta #82
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: Build and test | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| VCPKG_BINARY_SOURCES: clear;x-gha,readwrite | |
| VCPKG_RELEASE: 81ab9a89cb1c0b7a3bee67e4eaf72794d4820648 | |
| VCPKG_HOME: vcpkg/ | |
| jobs: | |
| format-source-code: | |
| name: Format source code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| - uses: pre-commit/[email protected] | |
| - uses: pre-commit-ci/[email protected] | |
| if: always() | |
| build: | |
| name: Buid & Test | |
| runs-on: ${{ matrix.os }} | |
| needs: format-source-code | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Checkout vcpkg | |
| uses: actions/checkout@v4 | |
| with: | |
| path: vcpkg | |
| ref: ${{ env.VCPKG_RELEASE }} | |
| repository: microsoft/vcpkg | |
| - name: Export GitHub Actions cache environment variables | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | |
| core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | |
| - name: Install required system packages | |
| shell: bash | |
| run: | | |
| if [ "${RUNNER_OS}" == "Linux" ]; then | |
| sudo apt-get update | |
| sudo apt-get -y install \ | |
| ninja-build qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev libgl1-mesa-dev libegl1-mesa-dev libxkbcommon-dev | |
| elif [ "${RUNNER_OS}" == "macOS" ]; then | |
| brew install \ | |
| ninja | |
| elif [ "${RUNNER_OS}" == "Windows" ]; then | |
| choco install \ | |
| ninja | |
| fi | |
| - name: Configure | |
| run: cmake --preset developer-gcc | |
| - name: Build | |
| run: cmake --build --preset developer-gcc | |
| - name: Upload vcpkg logs | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: logs | |
| path: vcpkg/buildtrees/*/*.log | |
| retention-days: 2 |