diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 67f781a..f7810ed 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,6 +1,7 @@ name: Test on: + workflow_dispatch: pull_request: push: branches: @@ -54,8 +55,9 @@ jobs: - macos-latest - windows-latest version: - - v1.5.0 - - v1.4.1 + - v1.10.4 + - v1.12.1 + - v2.0.0 runs-on: ${{ matrix.os }} steps: - name: Checkout diff --git a/install.sh b/install.sh index 84f8d68..8fe12c0 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ EOF main() { local version="$DEFAULT_VERSION" local github_token= - + parse_command_line "$@" install_camel_k @@ -93,7 +93,15 @@ install_camel_k() { echo "Installing Camel K CLI version $version$info on $os..." - curl -L --silent https://github.com/apache/camel-k/releases/download/$install_version/camel-k-client-$binary_version-$os-64bit.tar.gz -o kamel.tar.gz + arch="$(uname -m)" + if [[ $binary_version == 1.* ]] + then + arch="64bit" + fi + + echo "Loading camel-k/releases/download/$install_version/camel-k-client-$binary_version-$os-$arch.tar.gz" + + curl -L --silent https://github.com/apache/camel-k/releases/download/$install_version/camel-k-client-$binary_version-$os-$arch.tar.gz -o kamel.tar.gz mkdir -p _kamel tar -zxf kamel.tar.gz --directory ./_kamel