Skip to content

Commit

Permalink
Update go version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
milindl committed Feb 20, 2024
1 parent e348021 commit 3f89239
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ global_job_config:
commands:
- checkout
blocks:
- name: "Go 1.19 OSX bundled librdkafka"
- name: "go 1.21 OSX bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-macos-13-5-amd64
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -38,15 +38,15 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 linux bundled librdkafka"
- name: "go 1.21 linux bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu20-04-amd64-2
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -69,15 +69,15 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_integration_commands.sh
- name: "Go 1.19 linux arm64 bundled librdkafka"
- name: "go 1.21 linux arm64 bundled librdkafka"
dependencies: [ ]
task:
agent:
machine:
type: s1-prod-ubuntu20-04-arm64-1
prologue:
commands:
- sem-version go 1.19
- sem-version go 1.21
- export GOPATH=$(go env GOPATH)
- export PATH="$PATH:$GOPATH/bin"
- export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig"
Expand All @@ -100,7 +100,7 @@ blocks:
- name: EXPECT_LINK_INFO
value: dynamic
commands_file: semaphore_commands.sh
- name: "Go 1.19 Windows bundled librdkafka"
- name: "go 1.21 Windows bundled librdkafka"
dependencies: [ ]
task:
agent:
Expand Down
6 changes: 3 additions & 3 deletions mk/setup-go.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if (!(Test-Path -Path ($env:USERPROFILE + "\go"))) {
echo "Downloading and installing Go 1.19.11"
curl https://go.dev/dl/go1.19.11.windows-amd64.zip -o ($env:USERPROFILE + '\go.zip')
echo "Downloading and installing Go 1.21.7"
curl https://go.dev/dl/go1.21.7.windows-amd64.zip -o ($env:USERPROFILE + '\go.zip')
tar -xf ($env:USERPROFILE + '\go.zip') -C $env:USERPROFILE
} else {
echo "Using previously installed Go 1.19.11"
echo "Using previously installed Go 1.21.7"
}

0 comments on commit 3f89239

Please sign in to comment.