From 877a6d04d8f003961aaa80887b1937e581e05ba4 Mon Sep 17 00:00:00 2001 From: Milind L Date: Fri, 3 Feb 2023 11:55:48 +0530 Subject: [PATCH] WIP: semaphore go versions --- .semaphore/semaphore.yml | 97 ++-------------------------------------- 1 file changed, 3 insertions(+), 94 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 5b3cf7871..ca9c1f33a 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -11,33 +11,7 @@ global_job_config: commands: - checkout blocks: - - name: "Go 1.17 OSX bundled librdkafka" - dependencies: [ ] - task: - agent: - machine: - type: s1-prod-macos - prologue: - commands: - - sem-version go 1.18 - - export PATH="$PATH:$GOPATH/bin" - - export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig:$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig" - - export LD_LIBRARY_PATH="$HOME/confluent-kafka-go/tmp-build/lib" - - export DYLD_LIBRARY_PATH="$HOME/confluent-kafka-go/tmp-build/lib" - - rm -rf tmp-build - - go install golang.org/x/lint/golint@latest && touch .do_lint - jobs: - - name: "Static Build" - env_vars: - - name: EXPECT_LINK_INFO - value: static - commands_file: semaphore_commands.sh - - name: "Dynamic Build" - env_vars: - - name: EXPECT_LINK_INFO - value: dynamic - commands_file: semaphore_commands.sh - - name: "Go 1.17 linux bundled librdkafka" + - name: "Go 1.19 linux bundled librdkafka" dependencies: [ ] task: agent: @@ -45,7 +19,8 @@ blocks: type: s1-prod-ubuntu20-04-amd64-2 prologue: commands: - - sem-version go 1.17 + - sem-version go 1.19 + - export GOPATH=$(go env GOPATH) - export PATH="$PATH:$GOPATH/bin" - export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig" - export LD_LIBRARY_PATH="$HOME/confluent-kafka-go/tmp-build/lib" @@ -62,69 +37,3 @@ blocks: - name: EXPECT_LINK_INFO value: static commands_file: semaphore_commands.sh - - name: "Dynamic Build" - env_vars: - - name: EXPECT_LINK_INFO - value: dynamic - commands_file: semaphore_commands.sh - - name: "Go 1.17 linux arm64 bundled librdkafka" - dependencies: [ ] - task: - agent: - machine: - type: s1-prod-ubuntu20-04-arm64-1 - prologue: - commands: - - sem-version go 1.17 - - export PATH="$PATH:$GOPATH/bin" - - export PKG_CONFIG_PATH="$HOME/confluent-kafka-go/tmp-build/lib/pkgconfig" - - export LD_LIBRARY_PATH="$HOME/confluent-kafka-go/tmp-build/lib" - - export DYLD_LIBRARY_PATH="$HOME/confluent-kafka-go/tmp-build/lib" - - wget -qO - https://packages.confluent.io/deb/5.4/archive.key | sudo apt-key add - - - sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/5.4 stable main" - - sudo apt-get update -q - #- sudo apt-get install confluent-librdkafka-plugins -y - - rm -rf tmp-build - - go install golang.org/x/lint/golint@latest && touch .do_lint - jobs: - - name: "Static Build" - env_vars: - - name: EXPECT_LINK_INFO - value: static - commands_file: semaphore_commands.sh - - name: "Dynamic Build" - env_vars: - - name: EXPECT_LINK_INFO - value: dynamic - commands_file: semaphore_commands.sh - - name: "Go 1.17 Windows bundled librdkafka" - dependencies: [ ] - task: - agent: - machine: - type: s1-prod-windows - prologue: - commands: - # Install Go - - cache restore win-go-1.17 - - "& .\\mk\\setup-go.ps1" - - cache delete win-go-1.17 - - cache store win-go-1.17 ($env:USERPROFILE + '\go') - - cache restore msys2-x64 - # Set up msys2 - - ".\\mk\\mingw-w64\\setup-msys2.ps1" - - $env:PATH = 'C:\msys64\usr\bin;' + $env:PATH - - bash -lc './mk/mingw-w64/msys2-dependencies.sh' - - cache delete msys2-x64 - - cache store msys2-x64 c:/msys64 - jobs: - - name: "Static Build" - env_vars: - - name: EXPECT_LINK_INFO - value: static - - name: CHERE_INVOKING - value: 'yes' - - name: MSYSTEM - value: UCRT64 - commands_file: semaphore_commands.ps1 -