12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- # vim: filetype=yaml sw=2
- version: 0.0.7
- git_url: https://git.torproject.org/pluggable-transports/obfs4.git
- git_hash: 'obfs4proxy-[% c("version") %]'
- tag_gpg_id: 1
- gpg_keyring: yawning.gpg
- filename: '[% project %]-[% c("version") %]-[% c("var/osname") %]-[% c("var/build_id") %].tar.gz'
- build: '[% c("projects/go/var/build_go_lib") %]'
- var:
- container:
- use_container: 1
- go_lib: git.torproject.org/pluggable-transports/obfs4.git
- go_lib_install:
- - git.torproject.org/pluggable-transports/obfs4.git/obfs4proxy
- go_lib_deps:
- - goptlib
- - ed25519
- - siphash
- - uniuri
- - goxcrypto
- - goxnet
- go_lib_ldflags: '-s'
- build_go_lib_pre: |
- # Remove go.mod and go.sum files until we can build using Go module
- # versioning (see bug 28325).
- rm -f go.mod go.sum
- go_lib_no_output: 1
- build_go_lib_post: |
- [% c("var/set_PTDIR_DOCSDIR") -%]
- mkdir -p $PTDIR
- cp -a "$GOTARGETBIN/obfs4proxy[% IF c('var/windows') %].exe[% END %]" $PTDIR
- cd $distdir
- [% c('tar', {
- tar_src => [ '.' ],
- tar_args => '-czf ' _ dest_dir _ '/' _ c('filename'),
- }) %]
- targets:
- nightly:
- git_hash: master
- version: '[% c("abbrev") %]'
- tag_gpg_id: 0
- var:
- # Commit 70d0e90c861be34ce3c5425ef1366a0b2ceb3026 changed the canonical obfs4
- # upstream repo to gitlab.com/yawning/obfs4.git.
- go_lib: gitlab.com/yawning/obfs4.git
- go_lib_install:
- - gitlab.com/yawning/obfs4.git/obfs4proxy
- go_lib_deps:
- - goptlib
- - ed25519
- - siphash
- - uniuri
- - goxcrypto
- - goxnet
- - goutls
- - goxtext
- input_files:
- - project: container-image
- - name: go
- project: go
- - name: goptlib
- project: goptlib
- - name: ed25519
- project: ed25519
- - name: siphash
- project: siphash
- - name: uniuri
- project: uniuri
- - name: goxcrypto
- project: goxcrypto
- - name: goxnet
- project: goxnet
- - name: goutls
- project: goutls
- enable: '[% c("var/nightly") %]'
- - name: goxtext
- project: goxtext
- enable: '[% c("var/nightly") %]'
|