[Build] Rewrite build process #22
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: Build Polybase | |
| on: | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| actions: read | |
| concurrency: | |
| group: deploy-polybase | |
| cancel-in-progress: false | |
| jobs: | |
| format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.24' | |
| - name: Check diff between gofmt and code | |
| run: diff <(gofmt -d .) <(echo -n) | |
| build: | |
| name: Build polybase package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: '1.24' | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install just and scdoc | |
| run: sudo apt install -y just scdoc | |
| - name: Install deps | |
| run: bun i | |
| - name: Build package | |
| run: just build |