Skip to content
This repository was archived by the owner on Jul 12, 2024. It is now read-only.

Commit 0549547

Browse files
committed
build: Drop gccgo builds of CLI
1 parent 3cf0e9b commit 0549547

File tree

2 files changed

+4
-26
lines changed

2 files changed

+4
-26
lines changed

.github/workflows/hydrun.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ jobs:
2727
flags: ""
2828
cmd: ./Hydrunfile go keygaen-cli
2929
dst: out/*
30-
- id: gccgo-keygaen-cli
31-
src: .
32-
os: ghcr.io/pojntfx/bagccgop-base-sid
33-
flags: -e '--privileged'
34-
cmd: ./Hydrunfile gccgo keygaen-cli
35-
dst: out/*
3630
- id: pwa
3731
src: .
3832
os: golang:bookworm

Hydrunfile

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if [ "$1" = "test" ]; then
88
apt update
99
apt install -y make npm
1010

11+
# Configure Git
12+
git config --global --add safe.directory '*'
13+
1114
# Generate dependencies
1215
make depend
1316

@@ -34,26 +37,7 @@ if [ "$1" = "go" ]; then
3437
make depend
3538

3639
# Build
37-
CGO_ENABLED=0 bagop -j "$(nproc)" -b "$2" -x '(android/*|ios/*)' -p 'make build-cli/keygaen-cli DST=$DST' -d out
38-
39-
exit 0
40-
fi
41-
42-
# gccgo
43-
if [ "$1" = "gccgo" ]; then
44-
# Install native dependencies
45-
apt update
46-
apt install -y curl npm
47-
48-
# Install bagccgop
49-
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
50-
install /tmp/bagccgop /usr/local/bin
51-
52-
# Configure Git
53-
git config --global --add safe.directory '*'
54-
55-
# Build
56-
GOFLAGS='-gccgoflags=-static' bagccgop -x '(linux/alpha|linux/mipsle|linux/386|linux/amd64|linux/arm|linux/arm64|linux/mips|linux/mips64|linux/mips64le|linux/mipsle|linux/ppc64|linux/ppc64le|linux/riscv64|linux/s390x)' -j1 -b "$2" -n -r 'make depend' -s 'build-essential,automake,npm' -p 'make build-cli/keygaen-cli DST=$DST' -d out
40+
CGO_ENABLED=0 bagop -j "$(nproc)" -b "$2" -x '(android/*|ios/*|plan9/*|aix/*|linux/loong64|freebsd/riscv64|wasip1/wasm)' -p "make build/$2 DST=\$DST" -d out
5741

5842
exit 0
5943
fi

0 commit comments

Comments
 (0)