From efbd8e882c68f6035e15b021b3a79083670e468c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Rudowicz?= Date: Sun, 11 Feb 2024 14:49:34 +0100 Subject: [PATCH] Compress artifacts --- .build.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.build.yml b/.build.yml index 4fbff1f..d7b333b 100644 --- a/.build.yml +++ b/.build.yml @@ -2,6 +2,8 @@ image: alpine/latest packages: - go - python3-dev + - tar + - xz tasks: - go-get: | cd hswro-alarm-bot @@ -31,9 +33,8 @@ tasks: - build-arm8: | cd hswro-alarm-bot env GOOS=linux GOARCH=arm64 go build -o alarm_bot.arm8 + - compress: | + cd hswro-alarm-bot + tar cJvf alarm_bot.tar.xz alarm_bot.x86-64 alarm_bot.arm5 alarm_bot.arm6 alarm_bot.arm7 alarm_bot.arm8 artifacts: - - hswro-alarm-bot/alarm_bot.x86-64 - - hswro-alarm-bot/alarm_bot.arm5 - - hswro-alarm-bot/alarm_bot.arm6 - - hswro-alarm-bot/alarm_bot.arm7 - - hswro-alarm-bot/alarm_bot.arm8 + - hswro-alarm-bot/alarm_bot.tar.xz