From 8557442370e4fdc71b89573dbb4ac6ce76bce319 Mon Sep 17 00:00:00 2001 From: Timothy Messier Date: Wed, 2 Feb 2022 17:29:29 -0500 Subject: [PATCH] ci: Add plugin compile step (#1840) Some OS build steps were not compiling the plugins before compiling the boundary binary. This resulted in binaries that did not have plugins included, and would result in an error when starting a boundary server. --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cac77b3ae..3d9870882e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,7 +118,10 @@ jobs: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 run: | - mkdir dist out + mkdir -p dist out + unset GOPATH; + # Build plugins + sh ./scripts/plugins.sh go build -v -tags "ui" -ldflags "${{ env.LD_FLAGS }}" -o dist/ ./cmd/boundary zip -r -j out/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip dist/ - uses: actions/upload-artifact@v2 @@ -178,7 +181,10 @@ jobs: GOARCH: ${{ matrix.goarch }} CGO_ENABLED: 0 run: | - mkdir dist out + mkdir -p dist out + unset GOPATH; + # Build plugins + sh ./scripts/plugins.sh go build -v -tags "ui" -ldflags "${{ env.LD_FLAGS }}" -o dist/ ./cmd/boundary zip -r -j out/${{ env.PKG_NAME }}_${{ needs.get-product-version.outputs.product-version }}_${{ matrix.goos }}_${{ matrix.goarch }}.zip dist/ - uses: actions/upload-artifact@v2