image: ubuntu/noble
packages:
- curl
- ca-certificates
- gnupg
- protobuf-compiler
- cmake
- build-essential
sources:
- https://git.srht.bigb.es/~bigbes/tarantool-protobuf
environment:
GOPATH: /home/build/go
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
- install_just: |
mkdir -p ~/.local/bin
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh \
| bash -s -- --to ~/.local/bin
- install_luatest: |
cd tarantool-protobuf
tt rocks install luatest
- build_gen_test: |
cd tarantool-protobuf
just build
just gen
just test