summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-14 10:46:42 -0500
committerJeff Carr <[email protected]>2025-10-14 10:46:42 -0500
commit8326f9b6ed478a9c86ade42953f4ff0b52b6debc (patch)
treecea4ccc5c3ccbe4a5fa698698d297626c3a8fc22
parent5f1228689dd3d572750caaf6366a842c21c49f0c (diff)
try and get some riscv64 builds
-rw-r--r--Makefile8
-rw-r--r--argv.go13
-rw-r--r--doBuild.debian.go3
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