config 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. version: '[% c("abbrev") %]'
  2. git_url: https://github.com/hlandau/service.git
  3. git_hash: 0496f910e39ef577ba805f512f6e1b80d652c4b9
  4. filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
  5. build: '[% c("projects/go/var/build_go_lib") %]'
  6. var:
  7. container:
  8. use_container: 1
  9. go_lib: gopkg.in/hlandau/service.v2
  10. go_lib_deps:
  11. - gosvcutils
  12. - goeasyconfig
  13. build_go_lib_pre: |
  14. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  15. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  16. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  17. export CGO_ENABLED=1
  18. targets:
  19. linux-i686:
  20. var:
  21. arch_deps:
  22. - libcap-dev:i386
  23. linux-x86_64:
  24. var:
  25. arch_deps:
  26. - libcap-dev
  27. input_files:
  28. - project: container-image
  29. - name: go
  30. project: go
  31. - name: '[% c("var/compiler") %]'
  32. project: '[% c("var/compiler") %]'
  33. - name: binutils
  34. project: binutils
  35. - name: gosvcutils
  36. project: gosvcutils
  37. - name: goeasyconfig
  38. project: goeasyconfig