1
0
Fork 0
hswro-alarm-bot/.build.yml

29 lines
653 B
YAML
Raw Permalink Normal View History

2024-02-08 18:23:46 +00:00
image: alpine/latest
packages:
- go
2024-02-11 13:41:18 +00:00
- python3-dev
2024-02-11 13:49:34 +00:00
- tar
2024-04-06 10:10:28 +00:00
- zstd
2024-02-08 18:23:46 +00:00
tasks:
- go-get: |
cd hswro-alarm-bot
2024-02-10 23:13:31 +00:00
go get -t
2024-02-11 13:41:18 +00:00
- precommit: |
cd hswro-alarm-bot
python3 -m venv .venv
source .venv/bin/activate
pip3 install pre-commit
pre-commit install
pre-commit run -a
- test: |
cd hswro-alarm-bot
go test --count=10000
2024-02-08 18:23:46 +00:00
- build-x86_64: |
cd hswro-alarm-bot
2024-02-22 15:51:18 +00:00
env GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o alarm_bot.x86-64
2024-02-11 13:49:34 +00:00
- compress: |
cd hswro-alarm-bot
2024-04-06 10:10:28 +00:00
tar --zstd -cvf alarm_bot.tar.zstd alarm_bot.x86-64
2024-02-08 18:23:46 +00:00
artifacts:
2024-04-06 10:10:28 +00:00
- hswro-alarm-bot/alarm_bot.tar.zstd