Dev Build #4
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: Dev Build | |
| on: | |
| # push: | |
| # branches: | |
| # - main | |
| # paths-ignore: | |
| # - 'README.md' | |
| # - 'LICENSE' | |
| # - 'crowdin.yml' | |
| # - '.github/**' | |
| pull_request: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - 'README.md' | |
| - 'LICENSE' | |
| - 'crowdin.yml' | |
| - '.github/**' | |
| workflow_dispatch: | |
| inputs: | |
| identifier: | |
| description: 'Version identifier' | |
| required: false | |
| type: string | |
| defaults: | |
| run: | |
| shell: pwsh | |
| jobs: | |
| Build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: | |
| - windows-2025 | |
| # - ubuntu-24.04 | |
| # - macos-15 | |
| env: | |
| QT_VERSION: 6.9.2 | |
| VCPKG_REF: 74e6536215718009aae747d86d84b78376bf9e09 | |
| INNOSETUP_REF: is-6_5_4 | |
| VERSION_IDENTIFIER: ${{ github.sha }}${{ github.event.input.identifier && '.' || '' }}${{ github.event.input.identifier }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Initialize building environment | |
| uses: ./.github/actions/initialize-build-environment | |
| with: | |
| qt_version: ${{ env.QT_VERSION }} | |
| - name: Initialize Vcpkg | |
| uses: ./.github/actions/initialize-vcpkg | |
| with: | |
| ref: ${{ env.VCPKG_REF }} | |
| - name: Build | |
| run: | | |
| $output = & ./scripts/ci/Build.ps1 -BuildType dev -VcpkgRootDir $env:VCPKG_ROOT_DIR -VersionIdentifier $env:VERSION_IDENTIFIER | |
| Write-Output ARTIFACT_NAME=$($output.ApplicationName)_$($output.Semver -replace '[\.\-\+]', '_') >> $env:GITHUB_ENV | |
| Write-Output BUILD_DIR=$($output.BuildDir) >> $env:GITHUB_ENV | |
| Write-Output INSTALLED_DIR=$($output.InstalledDir) >> $env:GITHUB_ENV | |
| Write-Output INSTALLER_FILE_BASE=$($output.InstallerFileBase) >> $env:GITHUB_ENV | |
| - name: Collect symbol files | |
| run: | | |
| $output = & ./scripts/ci/Collect-Symbol-Files.ps1 -VcpkgRootDir $env:VCPKG_ROOT_DIR -InstalledDir $env:INSTALLED_DIR | |
| Write-Output SYMBOL_FILES_PATH=$($output.Path) >> $env:GITHUB_ENV | |
| - name: Pack | |
| run: | | |
| $output = & ./scripts/ci/Pack.ps1 -BuildDir $env:BUILD_DIR -InstallerFileBase $env:INSTALLER_FILE_BASE -InnoSetupCommit $env:INNOSETUP_REF | |
| Write-Output PACKAGE_PATH=$($output.Path) >> $env:GITHUB_ENV | |
| - name: Upload symbol files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }}_symbol_files | |
| path: ${{ env.SYMBOL_FILES_PATH }} | |
| - name: Upload package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.ARTIFACT_NAME }} | |
| path: ${{ env.PACKAGE_PATH }} |