Skip to content

Commit

Permalink
Add support for ARM64 build in update scripts and installer
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrendek committed Jan 18, 2024
1 parent 8f679a3 commit de05b04
Show file tree
Hide file tree
Showing 4 changed files with 202 additions and 191 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
steps:
- run: aws s3 cp trex.py s3://updates.sysward.com/
- 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 version s3://updates.sysward.com/
- run: aws cloudfront create-invalidation --distribution-id EXAQZU7A32C2T --paths='/*'
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ build_agent:
@echo "*****"
GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' \
-ldflags "-X main.Version=`date -u +%Y%m%d`${BUILD_NUMBER}" -o sysward
GOOS=linux CGO_ENABLED=0 go build -a -installsuffix cgo -ldflags '-s' \
-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
echo -n `date -u +%Y%m%d`${BUILD_NUMBER} > version
Expand Down
Loading

0 comments on commit de05b04

Please sign in to comment.