Skip to content

Commit

Permalink
Add initial build support for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrendek committed Jan 11, 2024
1 parent 71690e2 commit d6d6ebc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ 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_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 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

docker: docker_build docker_run
Expand Down

0 comments on commit d6d6ebc

Please sign in to comment.