Render Postgres analytics maps #11
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: Release CLI Binary | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Sync CLI version from Git tag | |
| run: bun run scripts/sync-cli-version.ts | |
| - name: Build Linux CLI binary | |
| working-directory: packages/cli | |
| run: | | |
| mkdir -p release | |
| bun build --compile --minify ./src/cli.ts --target=bun-linux-x64 --outfile release/ouroboros-cli-linux-x64 | |
| chmod +x release/ouroboros-cli-linux-x64 | |
| ./release/ouroboros-cli-linux-x64 --version | |
| - name: Generate Linux checksum | |
| working-directory: packages/cli/release | |
| run: sha256sum ouroboros-cli-linux-x64 > SHA256SUMS-linux-x64 | |
| - name: Publish Linux CLI binary to GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: | | |
| packages/cli/release/ouroboros-cli-linux-x64 | |
| packages/cli/release/SHA256SUMS-linux-x64 | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| build-macos: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Sync CLI version from Git tag | |
| run: bun run scripts/sync-cli-version.ts | |
| - name: Build macOS CLI binaries | |
| working-directory: packages/cli | |
| run: | | |
| mkdir -p release | |
| bun build --compile --minify ./src/cli.ts --target=bun-darwin-arm64 --outfile release/ouroboros-cli-darwin-arm64 | |
| bun build --compile --minify ./src/cli.ts --target=bun-darwin-x64 --outfile release/ouroboros-cli-darwin-x64 | |
| chmod +x release/ouroboros-cli-darwin-arm64 release/ouroboros-cli-darwin-x64 | |
| if [[ "$(uname -m)" == "arm64" ]]; then | |
| ./release/ouroboros-cli-darwin-arm64 --version | |
| else | |
| ./release/ouroboros-cli-darwin-x64 --version | |
| fi | |
| - name: Generate macOS checksums | |
| working-directory: packages/cli/release | |
| run: shasum -a 256 ouroboros-cli-darwin-arm64 ouroboros-cli-darwin-x64 > | |
| SHA256SUMS-darwin | |
| - name: Publish macOS CLI binaries to GitHub Release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: | | |
| packages/cli/release/ouroboros-cli-darwin-arm64 | |
| packages/cli/release/ouroboros-cli-darwin-x64 | |
| packages/cli/release/SHA256SUMS-darwin | |
| draft: false | |
| prerelease: false | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |