2024-02-08 18:23:46 +00:00
|
|
|
image: alpine/latest
|
|
|
|
packages:
|
|
|
|
- go
|
|
|
|
tasks:
|
|
|
|
- go-get: |
|
|
|
|
cd hswro-alarm-bot
|
2024-02-10 23:13:31 +00:00
|
|
|
go get -t
|
2024-02-08 18:23:46 +00:00
|
|
|
- build-x86_64: |
|
|
|
|
cd hswro-alarm-bot
|
|
|
|
env GOOS=linux GOARCH=amd64 go build -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
|
|
|
|
- test: |
|
|
|
|
cd hswro-alarm-bot
|
2024-02-11 10:51:41 +00:00
|
|
|
go test --count=10000
|
2024-02-08 18:23:46 +00:00
|
|
|
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
|