1
0
Fork 0

Reduce build output file size

This commit is contained in:
Michał Rudowicz 2024-02-22 16:51:18 +01:00
parent 795ffb66d9
commit a8fdc59d5e
1 changed files with 1 additions and 13 deletions

View File

@ -20,19 +20,7 @@ tasks:
go test --count=10000 go test --count=10000
- build-x86_64: | - build-x86_64: |
cd hswro-alarm-bot cd hswro-alarm-bot
env GOOS=linux GOARCH=amd64 go build -o alarm_bot.x86-64 env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o alarm_bot.x86-64
# - build-arm5: |
# cd hswro-alarm-bot
# env GOOS=linux GOARCH=arm GOARM=5 go build -o alarm_bot.arm5
# - build-arm6: |
# cd hswro-alarm-bot
# env GOOS=linux GOARCH=arm GOARM=6 go build -o alarm_bot.arm6
# - build-arm7: |
# cd hswro-alarm-bot
# env GOOS=linux GOARCH=arm GOARM=7 go build -o alarm_bot.arm7
# - build-arm8: |
# cd hswro-alarm-bot
# env GOOS=linux GOARCH=arm64 go build -o alarm_bot.arm8
- compress: | - compress: |
cd hswro-alarm-bot cd hswro-alarm-bot
tar cJvf alarm_bot.tar.xz alarm_bot.x86-64 tar cJvf alarm_bot.tar.xz alarm_bot.x86-64