environment: BUILD_SUBMITTER: git.sr.ht GIT_REF: refs/tags/v0.1.0 GO_VERSION: 1.26.3 PATH: /home/build/.local/go/bin:/home/build/.local/bin:/usr/local/bin:/usr/bin:/bin image: ubuntu/noble packages: - curl - ca-certificates sources: - "https://git.srht.bigb.es/~bigbes/ci-cacher#176b6cb94fda9f283356d899011c2be49e23d9c9" submitter: git.sr.ht: enabled: true allow-refs: - refs/heads/master - refs/tags/* tasks: - install_go: | GO_TARBALL="go${GO_VERSION}.linux-amd64.tar.gz" mkdir -p ~/.local curl -sSL "https://go.dev/dl/$GO_TARBALL" -o "/tmp/$GO_TARBALL" tar -xz -C ~/.local -f "/tmp/$GO_TARBALL" rm "/tmp/$GO_TARBALL" go version - test: | cd ci-cacher go test ./... - build: | cd ci-cacher go build -ldflags "-X go.bigb.es/cacher/internal/version.version=$(cat VERSION)" -o cacher . ./cacher version