docs: shorter tagline, platform icons, download counter, version badge #14
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] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| ELECTROBUN_VERSION: "1.13.1" | |
| jobs: | |
| build-macos: | |
| runs-on: macos-14 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Pre-cache electrobun binaries | |
| run: | | |
| EB_DIR="node_modules/electrobun" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-core-darwin-arm64.tar.gz" | tar -xz -C "$EB_DIR" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-cli-darwin-arm64.tar.gz" | tar -xz -C "$EB_DIR" | |
| - run: bun run build:prod | |
| - name: Package macOS artifact | |
| run: | | |
| cd build/dev-macos-arm64 | |
| tar -czf "../../PumpStudioTrainer-macos-arm64.tar.gz" . | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: PumpStudioTrainer-macos-arm64 | |
| path: PumpStudioTrainer-macos-arm64.tar.gz | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: bun install | |
| - name: Pre-cache electrobun binaries | |
| shell: bash | |
| run: | | |
| EB_DIR="node_modules/electrobun" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-core-win-x64.tar.gz" | tar -xz -C "$EB_DIR" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-cli-win-x64.tar.gz" | tar -xz -C "$EB_DIR" | |
| - run: bun run build:prod | |
| - name: Package Windows artifact | |
| shell: pwsh | |
| run: | | |
| Compress-Archive -Path build\dev-win-x64\* -DestinationPath PumpStudioTrainer-windows-x64.zip | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: PumpStudioTrainer-windows-x64 | |
| path: PumpStudioTrainer-windows-x64.zip | |
| build-linux: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - run: sudo apt-get update && sudo apt-get install -y build-essential cmake pkg-config libgtk-3-dev libwebkit2gtk-4.1-dev | |
| - run: bun install | |
| - name: Pre-cache electrobun binaries | |
| run: | | |
| EB_DIR="node_modules/electrobun" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-core-linux-x64.tar.gz" | tar -xz -C "$EB_DIR" | |
| curl -fSL "https://github.com/blackboardsh/electrobun/releases/download/v${ELECTROBUN_VERSION}/electrobun-cli-linux-x64.tar.gz" | tar -xz -C "$EB_DIR" | |
| - run: bun run build:prod | |
| - name: Package Linux artifact | |
| run: | | |
| cd build/dev-linux-x64 | |
| tar -czf "../../PumpStudioTrainer-linux-x64.tar.gz" . | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: PumpStudioTrainer-linux-x64 | |
| path: PumpStudioTrainer-linux-x64.tar.gz |