Skip to content

Commit

Permalink
WIP: semaphore go versions
Browse files Browse the repository at this point in the history
  • Loading branch information
milindl committed Feb 3, 2023
1 parent 289cfd9 commit 877a6d0
Showing 1 changed file with 3 additions and 94 deletions.
97 changes: 3 additions & 94 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,41 +11,16 @@ 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:
machine:
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"
Expand All @@ -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

0 comments on commit 877a6d0

Please sign in to comment.