~bigbes/tarantool

tarantool-protobuf

4fd731af37c68d7bb1afbec5a5966fee6b70c3fe — Eugene Blikh 2 months ago 5c70555
ci: install Go 1.26 toolchain + cmake on builds.srht

Ubuntu noble's `golang` apt package is too old to satisfy go.mod's
toolchain directive — `go build` aborted with "toolchain not available".
Drop the apt package, install the official Go 1.26.3 tarball into
~/.local/go, and update go.mod / bench/go/go.mod accordingly. Also add
cmake + build-essential so `tt rocks install luatest` can build its
`checks` dependency.
4 files changed, 36 insertions(+), 10 deletions(-)

M .builds/c-enabled.yml
M .builds/pure-lua.yml
M bench/go/go.mod
M go.mod
M .builds/c-enabled.yml => .builds/c-enabled.yml +17 -5
@@ 3,17 3,29 @@ packages:
  - curl
  - ca-certificates
  - gnupg
  - gcc
  - make
  - golang
  - protobuf-compiler
  - cmake
  - build-essential
sources:
  - https://sourcecraft.dev/bigbes/tarantool-protobuf
  - https://git.srht.bigb.es/~bigbes/tarantool-protobuf
environment:
  GOPATH: /home/build/go
  PATH: /home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin
  GOROOT: /home/build/.local/go
  GO_VERSION: "1.26.3"
  PATH: /home/build/.local/go/bin:/home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin
  PB_ENABLE_C: "1"
submitter:
  git.sr.ht:
    enabled: true
    allow-refs:
      - refs/heads/master
      - "refs/tags/*"
tasks:
  - install_go: |
      mkdir -p ~/.local
      curl -sSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
        | tar -xz -C ~/.local
      go version
  - install_tarantool: |
      curl -L https://tarantool.io/release/3/installer.sh | sudo bash
      sudo apt-get install -y tarantool tarantool-dev tt

M .builds/pure-lua.yml => .builds/pure-lua.yml +17 -3
@@ 3,14 3,28 @@ packages:
  - curl
  - ca-certificates
  - gnupg
  - golang
  - protobuf-compiler
  - cmake
  - build-essential
sources:
  - https://sourcecraft.dev/bigbes/tarantool-protobuf
  - https://git.srht.bigb.es/~bigbes/tarantool-protobuf
environment:
  GOPATH: /home/build/go
  PATH: /home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin
  GOROOT: /home/build/.local/go
  GO_VERSION: "1.26.3"
  PATH: /home/build/.local/go/bin:/home/build/.local/bin:/home/build/go/bin:/usr/local/bin:/usr/bin:/bin
submitter:
  git.sr.ht:
    enabled: true
    allow-refs:
      - refs/heads/master
      - "refs/tags/*"
tasks:
  - install_go: |
      mkdir -p ~/.local
      curl -sSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \
        | tar -xz -C ~/.local
      go version
  - install_tarantool: |
      curl -L https://tarantool.io/release/3/installer.sh | sudo bash
      sudo apt-get install -y tarantool tarantool-dev tt

M bench/go/go.mod => bench/go/go.mod +1 -1
@@ 1,6 1,6 @@
module github.com/tarantool-protobuf/bench/go

go 1.23
go 1.26

require (
	github.com/planetscale/vtprotobuf v0.6.0

M go.mod => go.mod +1 -1
@@ 1,5 1,5 @@
module sourcecraft.dev/bigbes/tarantool-protobuf

go 1.23
go 1.26

require google.golang.org/protobuf v1.36.0