From 8326f9b6ed478a9c86ade42953f4ff0b52b6debc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Oct 2025 10:46:42 -0500 Subject: try and get some riscv64 builds --- Makefile | 8 ++++++++ argv.go | 13 +++++++------ doBuild.debian.go | 3 +++ 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 5354e43..5a51a3e 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,14 @@ deb-with-commits-all: forge normal wit build deb --all --force +deb-with-commits-all-riscv64: + make commit + make merge + rm -f ~/incoming/*.deb + forge commit --all + forge normal + wit build deb --all --force --arch riscv64 + all: forge commit --all forge merge --all diff --git a/argv.go b/argv.go index f36b33c..fbd4b53 100644 --- a/argv.go +++ b/argv.go @@ -56,12 +56,13 @@ type LinuxCmd struct { } type DebianCmd struct { - Release bool `arg:"--release" help:"use go-deb --release"` - DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` - Verbose bool `arg:"--verbose" help:"be loud about it"` - Force bool `arg:"--force" help:"force devel .deb builds into /incoming"` - Priv bool `arg:"--private" help:"build private repos"` - All bool `arg:"--all" help:"build everything again"` + Release bool `arg:"--release" help:"use go-deb --release"` + DryRun bool `arg:"--dry-run" help:"only show what would be packaged"` + Verbose bool `arg:"--verbose" help:"be loud about it"` + Force bool `arg:"--force" help:"force devel .deb builds into /incoming"` + Priv bool `arg:"--private" help:"build private repos"` + All bool `arg:"--all" help:"build everything again"` + Arch string `arg:"--arch" help:"what arch"` } type CloneCmd struct { diff --git a/doBuild.debian.go b/doBuild.debian.go index a1ec302..a396bda 100644 --- a/doBuild.debian.go +++ b/doBuild.debian.go @@ -142,6 +142,9 @@ func buildDeb(repo *gitpb.Repo) error { cmd = []string{"go-deb", "--namespace", repo.Namespace, "--dir", outdir} // return nil } + if argv.Build.Debian.Arch != "" { + cmd = append(cmd, "--arch", argv.Build.Debian.Arch) + } if shouldBuild(repo) != "yes" { return nil -- cgit v1.2.3