build: Installl git in gccgo hydrun target

This commit is contained in:
Felicitas Pojtinger
2023-09-13 01:47:09 +02:00
parent e78f1f1b6f
commit 32b3ddea16
2 changed files with 3 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ jobs:
src: .
os: golang:bookworm
flags: ""
cmd: go test ./...
cmd: GOFLAGS="-short" ./Hydrunfile test
dst: out/*
- id: go-stfs
src: .

View File

@@ -42,7 +42,7 @@ fi
if [ "$1" = "gccgo" ]; then
# Install native dependencies
apt update
apt install -y curl
apt install -y curl git
# Install bagccgop
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
@@ -51,11 +51,8 @@ if [ "$1" = "gccgo" ]; then
# Configure Git
git config --global --add safe.directory '*'
# Generate dependencies
make depend
# Build
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle|linux/arm$|linux/arm64|linux/386|linux/amd64|linux/s390x)' -j1 -b "$1" -n -r 'make depend' -s 'build-essential,automake' -m 'libsqlite3-dev' -p 'make build/stfs DST=$DST' -d out
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle|linux/arm$|linux/arm64|linux/386|linux/amd64|linux/s390x)' -j1 -b "$2" -n -r 'make depend' -s 'build-essential,automake' -m 'libsqlite3-dev' -p 'make build/stfs DST=$DST' -d out
exit 0
fi