fix(dashboard): support Fill Screen for landscape and stabilize its s… #245
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: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: build-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build Installer (Windows) | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache Rust build output | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-egui | |
| - name: Cache NuGet packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.nuget/packages | |
| key: nuget-${{ hashFiles('sensor-sidecar/**/*.csproj') }} | |
| - name: Run verify pipeline | |
| run: cargo xtask verify | |
| - name: Build release binary + sidecar | |
| run: cargo xtask build | |
| - name: Install NSIS | |
| shell: pwsh | |
| run: | | |
| choco install nsis --no-progress -y | |
| $nsis = (Get-ChildItem "C:\Program Files*\NSIS\makensis.exe" | Select-Object -First 1).DirectoryName | |
| echo "$nsis" >> $env:GITHUB_PATH | |
| - name: Build NSIS installer | |
| shell: pwsh | |
| run: | | |
| $version = (Get-Content "src-egui/Cargo.toml" | Select-String 'version = "').ToString().Trim() -replace '.*version = "([^"]+)".*', '$1' | |
| & makensis /DVERSION=$version build\installer.nsi | |
| - name: Upload NSIS installer | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: rigstats-nsis | |
| path: target\release\RIGStats_*_x64-setup.exe | |
| if-no-files-found: error |