Compare commits

...

3 commits

Author SHA1 Message Date
f53f2b2d95 Merge tag 'v0.1.1' into develop
All checks were successful
continuous-integration/drone/push Build is passing
v0.1.1
2023-10-25 14:29:11 +02:00
d4c0c8f4ff Merge branch 'release/v0.1.1' 2023-10-25 14:29:06 +02:00
5169d05680 ci: fix package basename 2023-10-25 14:28:54 +02:00

View file

@ -6,17 +6,20 @@ name: default
steps:
- name: build:binary
image: crystallang/crystal:1.7.3
environment:
PACKAGE_BASENAME: mfm_linux_amd64
volumes:
- name: cache
path: /_cache
commands:
- pwd
- apt-get update && apt-get install -y cmake g++ libevent-dev libpcre3-dev libyaml-dev
- apt-get update &&
apt-get install -y cmake g++ libevent-dev libpcre3-dev libyaml-dev
- shards install
- shards build --production --static
- strip bin/mfm
- mkdir -p /_cache/bin
- cp -r bin/mfm /_cache/bin/mfm_linux_amd64
- cp -r bin/mfm /_cache/bin/$PACKAGE_BASENAME
- name: publish:tag
image: curlimages/curl
@ -36,7 +39,7 @@ steps:
- env |grep DRONE
- |
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
--upload-file /_cache/bin/mfm_amd64 \
--upload-file /_cache/bin/$PACKAGE_BASENAME \
$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME
# FIXME: handle multi-arch