fix: 从 Win11 25H2 开始不再特殊处理 Kirikiri 窗口 #4761
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 | |
| on: | |
| push: | |
| paths: [ '.github/workflows/build.yml', 'Magpie.slnx', '*.props', 'scripts/publish.py', 'src/**' ] | |
| pull_request: | |
| paths: [ '.github/workflows/build.yml', 'Magpie.slnx', '*.props', 'scripts/publish.py', 'src/**' ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| compiler: ["MSVC", "ClangCL"] | |
| platform: ["x64", "ARM64"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Setup Conan | |
| run: pip install conan | |
| - name: Load Conan cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.conan2/p | |
| key: Conan-${{ hashFiles('src/**/conanfile.txt') }}-${{ matrix.compiler }}-${{ matrix.platform }} | |
| - name: Build | |
| if: github.ref != 'refs/heads/dev' && github.ref != 'refs/heads/main' | |
| run: python scripts/publish.py --compiler=${{ matrix.compiler }} --platform=${{ matrix.platform }} | |
| - name: Build and sign | |
| if: github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/main' | |
| run: python scripts/publish.py --compiler=${{ matrix.compiler }} --platform=${{ matrix.platform }} --pfx-path=certs\Magpie.pfx --pfx-password="${{ secrets.MAGPIE_PFX_PASSWORD }}" | |
| - name: Save hash | |
| id: hash | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $env:GITHUB_OUTPUT | |
| - name: Store build | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: Magpie-dev-${{ steps.hash.outputs.sha_short }}-${{ matrix.compiler }}-${{ matrix.platform }} | |
| path: ./publish/${{ matrix.platform }} |