config 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. [% IF c("var/linux") %]
  15. [% pc(c('var/compiler'), 'var/setup', { compiler_tarfile => c('input_files_by_name/' _ c('var/compiler')) }) %]
  16. tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/binutils') %]
  17. export PATH="/var/tmp/dist/binutils/bin:$PATH"
  18. export CGO_ENABLED=1
  19. [% END %]
  20. targets:
  21. linux-i686:
  22. var:
  23. arch_deps:
  24. - libcap-dev:i386
  25. linux-x86_64:
  26. var:
  27. arch_deps:
  28. - libcap-dev
  29. windows:
  30. var:
  31. go_lib_deps:
  32. - gowinsvc
  33. - gosvcutils
  34. - goeasyconfig
  35. input_files:
  36. - project: container-image
  37. - name: go
  38. project: go
  39. - name: '[% c("var/compiler") %]'
  40. project: '[% c("var/compiler") %]'
  41. - name: binutils
  42. project: binutils
  43. - name: gowinsvc
  44. project: gowinsvc
  45. enable: '[% c("var/windows") %]'
  46. - name: gosvcutils
  47. project: gosvcutils
  48. - name: goeasyconfig
  49. project: goeasyconfig