Compare commits
No commits in common. "f53f2b2d95dbee48b3fcfb5d6aaf736c753bfdb4" and "57ac8be688f4769b06a56e77f84435c6160cc1d4" have entirely different histories.
f53f2b2d95
...
57ac8be688
1 changed files with 3 additions and 6 deletions
|
@ -6,20 +6,17 @@ name: default
|
||||||
steps:
|
steps:
|
||||||
- name: build:binary
|
- name: build:binary
|
||||||
image: crystallang/crystal:1.7.3
|
image: crystallang/crystal:1.7.3
|
||||||
environment:
|
|
||||||
PACKAGE_BASENAME: mfm_linux_amd64
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /_cache
|
path: /_cache
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- pwd
|
||||||
- apt-get update &&
|
- apt-get update && apt-get install -y cmake g++ libevent-dev libpcre3-dev libyaml-dev
|
||||||
apt-get install -y cmake g++ libevent-dev libpcre3-dev libyaml-dev
|
|
||||||
- shards install
|
- shards install
|
||||||
- shards build --production --static
|
- shards build --production --static
|
||||||
- strip bin/mfm
|
- strip bin/mfm
|
||||||
- mkdir -p /_cache/bin
|
- mkdir -p /_cache/bin
|
||||||
- cp -r bin/mfm /_cache/bin/$PACKAGE_BASENAME
|
- cp -r bin/mfm /_cache/bin/mfm_linux_amd64
|
||||||
|
|
||||||
- name: publish:tag
|
- name: publish:tag
|
||||||
image: curlimages/curl
|
image: curlimages/curl
|
||||||
|
@ -39,7 +36,7 @@ steps:
|
||||||
- env |grep DRONE
|
- env |grep DRONE
|
||||||
- |
|
- |
|
||||||
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
curl -H "Authorization: token $PACKAGE_UPLOAD_TOKEN" \
|
||||||
--upload-file /_cache/bin/$PACKAGE_BASENAME \
|
--upload-file /_cache/bin/mfm_amd64 \
|
||||||
$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME
|
$PACKAGE_UPLOAD_URL/$DRONE_TAG/$PACKAGE_BASENAME
|
||||||
|
|
||||||
# FIXME: handle multi-arch
|
# FIXME: handle multi-arch
|
||||||
|
|
Loading…
Add table
Reference in a new issue