order #22
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: WinMenuCI | |
| on: | |
| push: | |
| paths-ignore: | |
| # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions | |
| - "docs/**" | |
| - "**.md" | |
| - "**.txt" | |
| - "!CMakeLists.txt" | |
| - "LICENSE" | |
| pull_request: | |
| paths-ignore: | |
| - "docs/**" | |
| - "**.md" | |
| - "**.txt" | |
| - "!CMakeLists.txt" | |
| - "LICENSE" | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: windows-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [win64, arm64] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 1 | |
| - name: compile | |
| run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./script/build.ps1" -Target "${{ matrix.target }}" | |
| - name: Load PFX File from GitHub Secrets | |
| if: startsWith(github.ref, 'refs/tags/') | |
| id: savepfx | |
| shell: pwsh | |
| env: | |
| BAULK_APPX_SIGNATURE_PFX: ${{ secrets.BAULK_APPX_SIGNATURE_PFX }} | |
| run: | | |
| $pfx_cert_byte = [System.Convert]::FromBase64String("$env:BAULK_APPX_SIGNATURE_PFX") | |
| $currentDirectory = Get-Location | |
| $certificatePath = Join-Path -Path $currentDirectory -ChildPath "build\Key.pfx" | |
| [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) | |
| Write-Host "Write $certificatePath success" | |
| Get-Item $certificatePath | |
| - name: Make Code Appx | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./msix/makeCodeAppx.ps1" -Target "${{ matrix.target }}" | |
| - name: Make Git Appx | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: pwsh -NoProfile -NoLogo -ExecutionPolicy unrestricted -File "./msix/makeGitAppx.ps1" -Target "${{ matrix.target }}" | |
| - name: Publish Artifacts | |
| uses: svenstaro/upload-release-action@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| file_glob: true | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| file: build/destination/* | |
| tag: ${{ github.ref }} | |
| overwrite: true |