build: Installl git in gccgo hydrun target
This commit is contained in:
2
.github/workflows/hydrun.yaml
vendored
2
.github/workflows/hydrun.yaml
vendored
@@ -19,7 +19,7 @@ jobs:
|
|||||||
src: .
|
src: .
|
||||||
os: golang:bookworm
|
os: golang:bookworm
|
||||||
flags: ""
|
flags: ""
|
||||||
cmd: go test ./...
|
cmd: GOFLAGS="-short" ./Hydrunfile test
|
||||||
dst: out/*
|
dst: out/*
|
||||||
- id: go-stfs
|
- id: go-stfs
|
||||||
src: .
|
src: .
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ fi
|
|||||||
if [ "$1" = "gccgo" ]; then
|
if [ "$1" = "gccgo" ]; then
|
||||||
# Install native dependencies
|
# Install native dependencies
|
||||||
apt update
|
apt update
|
||||||
apt install -y curl
|
apt install -y curl git
|
||||||
|
|
||||||
# Install bagccgop
|
# Install bagccgop
|
||||||
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
|
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
|
# Configure Git
|
||||||
git config --global --add safe.directory '*'
|
git config --global --add safe.directory '*'
|
||||||
|
|
||||||
# Generate dependencies
|
|
||||||
make depend
|
|
||||||
|
|
||||||
# Build
|
# 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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user