Skip to content
39 changes: 39 additions & 0 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build all packages

on:
workflow_call:

jobs:
build-package:
runs-on: ubuntu-24.04
strategy:
matrix:
package:
- path: packages/orchestrator
output: bin/orchestrator
- path: packages/api
output: bin/api
- path: packages/envd
output: bin/debug/envd
- path: packages/client-proxy
output: bin/client-proxy

steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: ./.github/actions/go-setup-cache
with:
cache-dependency-paths: |
go.work
${{ matrix.package.path }}/go.mod
${{ matrix.package.path }}/go.sum

- name: Build package
run: make -C ${{ matrix.package.path }} build-debug

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.package.path }}-build
path: ${{ matrix.package.path }}/{{ matrix.package.output }}
4 changes: 3 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ jobs:
uses: ./.github/workflows/out-of-order-migrations.yml
unit-tests:
uses: ./.github/workflows/pr-tests.yml
build:
uses: ./.github/workflows/pr-build.yml
integration-tests:
needs: [out-of-order-migrations]
needs: [out-of-order-migrations, build]
uses: ./.github/workflows/integration_tests.yml
with:
# Only publish the results for same-repo PRs
Expand Down
Loading