fix: reduce API cooldown duration from 5 seconds to 2 seconds #152
Workflow file for this run
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: Check Windows Installer Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| check-installer: | |
| runs-on: windows-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Publish Application (win-x64) | |
| run: | | |
| dotnet publish "./AvatarExplorer.UI/AvatarExplorer.UI.csproj" -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o ./publish | |
| - name: Install Inno Setup | |
| shell: powershell | |
| run: | | |
| choco install innosetup -y --no-progress | |
| - name: Build Windows Installer | |
| shell: powershell | |
| run: | | |
| $version = "0.0.0-ci" | |
| $runtime = "win-x64" | |
| $isccPath = "${env:ProgramFiles(x86)}\Inno Setup 6\ISCC.exe" | |
| if (!(Test-Path $isccPath)) { | |
| throw "ISCC.exe was not found at: $isccPath" | |
| } | |
| & $isccPath "/DMyAppVersion=$version" "/DMyAppRuntime=$runtime" "/DMySourceDir=publish" "/DMyOutputDir=." ".github/installer/windows.iss" | |
| - name: Verify installer output exists | |
| shell: powershell | |
| run: | | |
| $installer = "VRC-Avatar-Explorer_0.0.0-ci-win-x64_setup.exe" | |
| if (!(Test-Path $installer)) { | |
| throw "Installer was not generated: $installer" | |
| } |