Skip to content

Commit

Permalink
Merge pull request #37 from DEShawResearch/travis-add-binaries
Browse files Browse the repository at this point in the history
Add automatically-generated static binary releases
  • Loading branch information
fennm authored Mar 1, 2021
2 parents 514318f + 0ec2954 commit 51b038c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
33 changes: 20 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,12 @@ dist: xenial
services:
- docker

# Not quite working... uncomment and fix when we have something to do
#deploy:
# provider: releases
# token:
# secure: "UYxJTTcSmL6LcEpmW4YjR91MUsQeprHcLbe10C4ps/nSmlKEHvjE+IObJbl1SVPs2/zFYlOhlSIegpAxedgU+dh49zmgiVj4ArgHRX4bKh7U7MVPsEnGuIlsEipfjpBsddmui1xSY8FM2anQ5fEWYSFOOL1DSmZ/5LJd+cJnBjnyAnU1MkS2xbLIJju4fVSmwiZ5Y9XrFZ0OqFNDxL3NWWMTQLOjnxwuK1kda6rAhami3B/94+mbQPx+7tzQTSifLswZgm4lTCEbpezr5YWj+WZ2AQ/Gs5CTEmLbH4J7uEBYj1BDcqVQxp8R8IfU/iZuyOvbv1HbO50S0foq6T7EbJOHUUaMN2i/uB9QEM2IJfmiBoTySiDY4ubvG0BzY5Hi5Nz122d+TPele9wv3/Fio6SykLboNl0/r9Ik7TniVLLMnilUMvxMLvEuhAVm68lnOg5aO9u8I5YLiBURo1bOJ2GJTDPdfsZ2ffrEQzV+1OYjK2dgbJPVPJIMe2y4+QTatQ/eUFOYYh/TA7doKPNFHEZA/3P9uW1HXnXReXQE0vktiMJ6J0KLKXMouCXoK47hd6mhKYVuGsQELh8XblkX5jsJGV+u2jFEtvAIBUk0Ts2t6cGgZh7Ku9Lz0wMUER1xLiUFyQ6HisFYfxs1Odb07p7ZbwWcGDmpwxrfLyTAJfk="
# file: "placeholder"
# cleanup: false
# draft: true
# on:
# tags: true
# edge: true

# alpine 3.12 (or later) is built static, while 3.11 is dynamic
env:
global:
- secure: Z+i0G5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f6OmXDLCVOLZGc9esf0V+xjW16KnOdin8ehkb/Ewg9w8gCHbzrUHvx4ZXddD/rL6xpI0Hpm3Of8Ss9zIUwLdbqpKqXYZVM8FXm3/tLdqWgVgogUZi44BQY/waXm6K3/Ior3g8OryN3bJjNh5SzduYh+Ipt1XtF+GPstHB9rTH7atalWJAsgb7GM1Ozw49p+l6nurV5Z+4wQfVZGMZWks0J/+DMKpk+g1ye3B55a+i0jM/ygi1hWaXey2VslQiJzmH1JA5617J444OmEl06qOPkEnwBYHxSNZPfG2rdMoFQ0=
jobs:
# alpine 3.12 (or later) is built static, while 3.11 is dynamic
- DOCKER_IMAGE=alpine:3.11
- DOCKER_IMAGE=alpine:3.12
- DOCKER_IMAGE=centos:7
Expand Down Expand Up @@ -61,4 +49,23 @@ after_failure:
- cat c/fs123.err
- cat c/fs123.exstatus

before_deploy:
- >
[[ $DOCKER_IMAGE = "alpine:3.12" ]] &&
./misc/dockrun ${DOCKER_IMAGE} /fs123/misc/packaging/build-static
deploy:
provider: releases
token:
secure: "FtNdWmDOdl5ur9VhXu/psjUj5ZuMUty5ylqhEYrz2tAh5X2tPtKdg0PZQetEnCjwuoU+yfrAO0jjOqeAThYAZVAlATAhOg7inBkKjk1upDWUmsmh9v/s3NwsebjXw6Ppi6bCnZ696SDKEWAYNfTT3zk+uZ0mTb5OFoy3Sqh7pqQxT+P2iMiRt3CFlcGXsx+ztVVk3Z7X29V6QnL/ZgVFYOuTkGxhSxYQvFQf4oweE0Cp+SpvD6h3w/thg3HiuUUjnlcoZDPozLHpjXg361rvUt/avhxvQkqBLrqV9Vr6GMFXRBdQEemq8rQkBL7m3v29WBXyyUg+Q5howOcOr6P8qmDej0xAFWah22I+s/B4L10fZP9aLaFICFOHm3PsAXVsuLOnJAolRtXKl4vESvV23R1inc8r7WJTFrPc01EFYmJsoLhPwlLQuq52RJ73uDvBSRrc21vwPOZjIFnLeDjebLrIGS4CRIST6Wlr0sWZUxNerL1d8mvUqu9so1wrzqD27V0R3P2bYNS9BEQ12hf8axqhY4acq+JwD0CSRZAPv9G5VSjvp6za24BxX3HRQa2E23T2BknNXyerc9/RqYaZUMzovMjivKhZodbDrbaLOzbEgPL5k2Mf5zYucEAeLXOG3kyl8SGQ0MIorPW3VKJj2I3BQzcRfMAZBkdBOn7GMbc="
file:
- /tmp/fs123p7
- /tmp/fs123p7-debug
cleanup: false
on:
tags: true
condition: $DOCKER_IMAGE = "alpine:3.12"
edge: true


# vim: ts=4:sw=4:et:ai
2 changes: 1 addition & 1 deletion misc/packaging/build-static
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh -x
#
# Usage: (from a host):
# sudo ../dockrun alpine:12 /fs123/misc/packaging/build-static
# sudo ../dockrun alpine:3.12 /fs123/misc/packaging/build-static
#
# This script (.../build-static) will run inside an alpine:12
# container. It will be compile and staticly link an fs123p7 binary
Expand Down

0 comments on commit 51b038c

Please sign in to comment.