fix: make explorerframe.dll patch universal #581
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 | |
| permissions: write-all | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: windows-2025 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - uses: xmake-io/github-action-setup-xmake@v1 | |
| with: | |
| xmake-version: branch@master | |
| actions-cache-folder: '.xmake-cache' | |
| actions-cache-key: 'ci' | |
| package-cache: true | |
| package-cache-key: windows-2025 | |
| # build-cache: true | |
| # build-cache-key: ${{ matrix.os }}-${{ matrix.build_type }} | |
| - name: Xmake configure | |
| run: | | |
| xmake config -v --yes --toolchain=clang-cl --mode=releasedbg --builddir=build | |
| - name: build-releasedbg | |
| run: | | |
| xmake b --yes --verbose inject | |
| xmake b --yes --verbose shell | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4.6.0 | |
| with: | |
| path: ./build/windows/x64/ | |
| name: windows-build | |
| - name: Setup Scoop | |
| uses: MinoruSekine/setup-scoop@v1 | |
| - name: Upload PDBs to Sentry | |
| shell: pwsh | |
| env: | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
| SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
| SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
| run: | | |
| scoop install sentry-cli | |
| sentry-cli debug-files upload --include-sources ./build/windows/x64/ | |
| - name: Create Archive | |
| if: github.event_name == 'release' | |
| run: | | |
| Compress-Archive -Path ./build/windows/* -DestinationPath windows-build-pdb.zip | |
| Remove-Item -Path ./build/windows/x64/releasedbg/*.pdb -Force | |
| Remove-Item -Path ./build/windows/x64/releasedbg/*.lib -Force | |
| Compress-Archive -Path ./build/windows/* -DestinationPath windows-build.zip | |
| - name: Upload Release Assets | |
| if: github.event_name == 'release' | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| windows-build.zip | |
| windows-build-pdb.zip | |
| token: ${{ secrets.GITHUB_TOKEN }} |