chore: remove blur on windows #35
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 Millennium | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-windows: | |
| permissions: | |
| contents: write | |
| issues: write | |
| pull-requests: write | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: (Setup) Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: Cache vcpkg | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| vendor/vcpkg/installed | |
| vendor/vcpkg/buildtrees | |
| vendor/vcpkg/packages | |
| key: vcpkg-windows-${{ runner.os }}-${{ hashFiles('vcpkg.json') }} | |
| restore-keys: | | |
| vcpkg-windows-${{ runner.os }}- | |
| - name: (Setup) Semantic Release | |
| run: npm install --save-dev semantic-release @semantic-release/github @semantic-release/exec @semantic-release/changelog @semantic-release/git | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: (Setup) Get Next Version | |
| run: . scripts\version.ps1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install prerequisites | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| msystem: mingw32 | |
| install: mingw-w64-i686-libgcrypt mingw-w64-i686-gcc mingw-w64-i686-cmake mingw-w64-i686-ninja unzip | |
| - name: Build Millennium | |
| shell: msys2 {0} | |
| run: | | |
| cmake --preset=release | |
| cmake --build build/release --config Release -- -j$(nproc) | |
| mkdir -p D:/a/build/unsigned | |
| mv build/release/Installer.exe D:/a/build/unsigned/MillenniumInstaller-Windows.exe | |
| - name: Upload Build Artifact | |
| id: upload-unsigned-artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| include-hidden-files: true | |
| name: millennium-windows | |
| path: D:/a/build/unsigned/MillenniumInstaller-Windows.exe | |
| - name: Sign Installer Build | |
| id: sign_artifact | |
| uses: signpath/[email protected] | |
| with: | |
| api-token: "${{ secrets.SIGNPATH_API_TOKEN }}" | |
| organization-id: "6031d927-550b-4263-8ec0-44c4c7e39b6f" | |
| project-slug: "Installer" | |
| signing-policy-slug: "test-signing" | |
| artifact-configuration-slug: "millennium-installer-release-config" | |
| github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}" | |
| output-artifact-directory: "signed-millennium" | |
| wait-for-completion: true | |
| - name: 📤 Upload Signed Build Release | |
| id: upload-signed-artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| include-hidden-files: true | |
| name: millennium-windows-signed | |
| path: "signed-millennium/MillenniumInstaller-Windows.exe" | |
| - name: Create GitHub Release | |
| run: npx semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |