Skip to content

Commit

Permalink
Add builds for arm32 and armv7l and armv6l
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrendek committed Jan 20, 2024
1 parent de05b04 commit 58e3d65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ jobs:
- run: aws s3 cp sysward s3://updates.sysward.com/
- run: aws s3 cp sysward_x86_64 s3://updates.sysward.com/
- run: aws s3 cp sysward_arm64 s3://updates.sysward.com/
- run: aws s3 cp sysward_armv7l s3://updates.sysward.com/
- run: aws s3 cp sysward_armv6l s3://updates.sysward.com/
- run: aws s3 cp version s3://updates.sysward.com/
- run: aws cloudfront create-invalidation --distribution-id EXAQZU7A32C2T --paths='/*'
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ build_agent:
-ldflags "-X main.Version=`date -u +%Y%m%d`${BUILD_NUMBER}" -o sysward_x86_64
GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' \
-ldflags "-X main.Version=`date -u +%Y%m%d`${BUILD_NUMBER}" -o sysward_arm64
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' \
-ldflags "-X main.Version=`date -u +%Y%m%d`${BUILD_NUMBER}" -o sysward_armv7l
GOOS=linux GOARCH=arm CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' \
-ldflags "-X main.Version=`date -u +%Y%m%d`${BUILD_NUMBER}" -o sysward_armv6l
echo -n `date -u +%Y%m%d`${BUILD_NUMBER} > version

docker: docker_build docker_run
Expand Down

0 comments on commit 58e3d65

Please sign in to comment.