Skip to content

Commit

Permalink
fix(ci): use released action version
Browse files Browse the repository at this point in the history
Closes #4063
  • Loading branch information
squakez committed Jun 22, 2023
1 parent 946d1d4 commit e5b5db4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/actions/kamel-build-binary/build-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#
####

set -e
set -ex

while getopts ":i:l:m:s:x:" opt; do
case "${opt}" in
Expand Down Expand Up @@ -92,12 +92,15 @@ else
RULES="${RULES} image-push"
fi

make ${RULES}
# Let's specify the image is for linux (otherwise the binary produced could be for the same platform doing the build)
GOOS=linux make ${RULES}
fi

echo "Moving kamel binary to be visible on PATH"

if [ "$RUNNER_OS" == "macOS" ]; then
# We need to build the binary for the proper platform if we're not on Linux
make build
${SUDO} mv $(readlink kamel) /usr/local/bin/kamel
else
${SUDO} mv $(readlink kamel) /usr/bin/kamel
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/kamel-config-cluster-kind/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
steps:
- id: install-cluster
name: Install Cluster
uses: container-tools/kind-action@61f1afd4807b0dac84f3232ec99e45c63701d220
uses: container-tools/kind-action@v2.0.1
if: ${{ env.CLUSTER_KIND_CONFIGURED != 'true' }}
with:
version: v0.14.0
Expand Down
4 changes: 2 additions & 2 deletions script/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,8 @@ test-quarkus-native-high-memory: do-build
go test -timeout 180m -v ./e2e/native -tags=integration,high_memory $(TEST_QUARKUS_RUN) $(GOTESTFMT)

build-kamel:
@echo "####### Building kamel CLI for $(IMAGE_ARCH) architecture..."
CGO_ENABLED=0 GOOS=linux GOARCH=$(IMAGE_ARCH) go build $(GOFLAGS) -o build/_output/bin/kamel-$(IMAGE_ARCH) ./cmd/kamel/*.go
@echo "####### Building kamel CLI for $(GOOS) $(IMAGE_ARCH) architecture..."
CGO_ENABLED=0 GOARCH=$(IMAGE_ARCH) go build $(GOFLAGS) -o build/_output/bin/kamel-$(IMAGE_ARCH) ./cmd/kamel/*.go
# Symbolic link to a local CLI
ln -sf build/_output/bin/kamel-$(IMAGE_ARCH) ./kamel

Expand Down

0 comments on commit e5b5db4

Please sign in to comment.