Skip to content

Commit a3d1099

Browse files
committed
feat: package different builds for each combination of kernel/architecture
1 parent 0da2ac7 commit a3d1099

File tree

7 files changed

+965
-483
lines changed

7 files changed

+965
-483
lines changed

Makefile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
NAME=go-basher
22
OWNER=progrium
33
BASH_DIR=.bash
4-
BASH_STATIC_VERSION=5.1-actions-1
4+
BASH_STATIC_VERSION=5.1.008-1.2.2
55

66
test:
77
go test -v
@@ -10,22 +10,30 @@ build:
1010
go install || true
1111

1212
deps:
13-
go get -u github.com/jteeuwen/go-bindata/...
13+
go get -u github.com/a-urth/go-bindata/...
1414

1515
bash:
1616
# Don't run if you don't have to. Adds several megs to repo with every commit.
17-
rm -rf $(BASH_DIR) && mkdir -p $(BASH_DIR)/linux $(BASH_DIR)/osx
17+
rm -rf $(BASH_DIR) && mkdir -p $(BASH_DIR)/linux-arm $(BASH_DIR)/linux-arm64 $(BASH_DIR)/linux-amd64 $(BASH_DIR)/osx-amd64
1818

19-
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-ubuntu-latest \
20-
> $(BASH_DIR)/linux/bash
19+
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux-aarch64 \
20+
> $(BASH_DIR)/linux-arm64/bash
2121

22-
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-macos-latest \
23-
> $(BASH_DIR)/osx/bash
22+
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux-armv7 \
23+
> $(BASH_DIR)/linux-arm/bash
24+
25+
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-linux-x86_64 \
26+
> $(BASH_DIR)/linux-amd64/bash
27+
28+
curl -#SLk https://github.com/robxu9/bash-static/releases/download/$(BASH_STATIC_VERSION)/bash-macos-x86_64 \
29+
> $(BASH_DIR)/osx-amd64/bash
2430

2531
chmod +x $(BASH_DIR)/*/bash
2632

27-
go-bindata -tags=linux -o=bash_linux.go -prefix=$(BASH_DIR)/linux -pkg=basher $(BASH_DIR)/linux
28-
go-bindata -tags=darwin -o=bash_darwin.go -prefix=$(BASH_DIR)/osx -pkg=basher $(BASH_DIR)/osx
33+
go-bindata -tags=linux,arm -o=bash_linux_arm.go -prefix=$(BASH_DIR)/linux-arm -pkg=basher $(BASH_DIR)/linux-arm
34+
go-bindata -tags=linux,arm64 -o=bash_linux_arm64.go -prefix=$(BASH_DIR)/linux-arm64 -pkg=basher $(BASH_DIR)/linux-arm64
35+
go-bindata -tags=linux,amd64 -o=bash_linux_amd64.go -prefix=$(BASH_DIR)/linux-amd64 -pkg=basher $(BASH_DIR)/linux-amd64
36+
go-bindata -tags=darwin,amd64 -o=bash_darwin_amd64.go -prefix=$(BASH_DIR)/osx-amd64 -pkg=basher $(BASH_DIR)/osx-amd64
2937

3038
circleci:
3139
rm ~/.gitconfig

bash_darwin.go

Lines changed: 0 additions & 237 deletions
This file was deleted.

bash_darwin_amd64.go

Lines changed: 237 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bash_linux.go

Lines changed: 0 additions & 237 deletions
This file was deleted.

bash_linux_amd64.go

Lines changed: 237 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bash_linux_arm.go

Lines changed: 237 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bash_linux_arm64.go

Lines changed: 237 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)