compilescript allows you to execute files from compiled languages as scripts.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. kind: pipeline
  2. name: x86_64 build
  3. volumes:
  4. - name: debian-package-cache
  5. host:
  6. path: /var/cache/debian-package-cache
  7. trigger:
  8. event:
  9. exclude:
  10. - tag
  11. steps:
  12. - name: submodules
  13. image: docker:git
  14. commands:
  15. - git submodule init
  16. - git submodule update --recursive
  17. - name: gcc6
  18. image: debian:stretch-slim
  19. pull: always
  20. environment:
  21. LANG: C.utf8
  22. CXX: g++-6
  23. CXXFLAGS: -pipe -O2
  24. commands:
  25. - rm /etc/apt/apt.conf.d/docker-clean
  26. - apt-get update -q
  27. - apt-get install -qy g++-6 cmake pkg-config
  28. - apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
  29. - apt-get install -qy dpkg-dev d-shlibs rpm file wget
  30. - rm -rf build && mkdir -p build && cd build
  31. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  32. - make VERBOSE=1
  33. - make install DESTDIR=install
  34. volumes:
  35. - name: debian-package-cache
  36. path: /var/cache/apt/archives
  37. - name: gcc5
  38. image: debian:stretch-slim
  39. pull: always
  40. environment:
  41. LANG: C.utf8
  42. CXX: g++-5
  43. CXXFLAGS: -pipe -O2
  44. commands:
  45. - rm /etc/apt/apt.conf.d/docker-clean
  46. - apt-get update -q
  47. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  48. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  49. - apt-get install -qy gnupg
  50. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  51. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  52. - apt-get update -q
  53. - apt-get install -qy -t xenial g++-5
  54. - apt-get install -qy cmake pkg-config
  55. - apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
  56. - rm -rf build && mkdir -p build && cd build
  57. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  58. - make VERBOSE=1
  59. volumes:
  60. - name: debian-package-cache
  61. path: /var/cache/apt/archives
  62. - name: gcc9
  63. image: debian:stretch-slim
  64. pull: always
  65. environment:
  66. LANG: C.utf8
  67. CXX: g++-9
  68. CXXFLAGS: -pipe -O2
  69. commands:
  70. - rm /etc/apt/apt.conf.d/docker-clean
  71. - apt-get update -q
  72. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  73. - echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
  74. - apt-get install -qy gnupg
  75. - gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
  76. - gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
  77. - apt-get update -q
  78. - apt-get install -qy -t xenial g++-9
  79. - apt-get install -qy cmake pkg-config
  80. - apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
  81. - rm -rf build && mkdir -p build && cd build
  82. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  83. - make VERBOSE=1
  84. volumes:
  85. - name: debian-package-cache
  86. path: /var/cache/apt/archives
  87. - name: clang3
  88. image: debian:stretch-slim
  89. pull: always
  90. environment:
  91. LANG: C.utf8
  92. CXX: clang++
  93. CXXFLAGS: -pipe -O2
  94. commands:
  95. - rm /etc/apt/apt.conf.d/docker-clean
  96. - apt-get update -q
  97. - apt-get install -qy clang cmake pkg-config
  98. - apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
  99. - rm -rf build && mkdir -p build && cd build
  100. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  101. - make VERBOSE=1
  102. volumes:
  103. - name: debian-package-cache
  104. path: /var/cache/apt/archives
  105. - name: clang6
  106. image: debian:stretch-slim
  107. pull: always
  108. environment:
  109. LANG: C.utf8
  110. CXX: clang++-6.0
  111. CXXFLAGS: -pipe -O2
  112. commands:
  113. - rm /etc/apt/apt.conf.d/docker-clean
  114. - echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
  115. - echo "deb http://deb.debian.org/debian stretch-backports main" >> /etc/apt/sources.list.d/stretch.list
  116. - apt-get update -q
  117. - apt-get install -qy -t stretch-backports clang-6.0
  118. - apt-get install -qy cmake pkg-config
  119. - apt-get install -qy libconfig++-dev libxdg-basedir-dev asciidoc
  120. - rm -rf build && mkdir -p build && cd build
  121. - cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  122. - make VERBOSE=1
  123. volumes:
  124. - name: debian-package-cache
  125. path: /var/cache/apt/archives
  126. - name: notify
  127. image: drillster/drone-email
  128. pull: always
  129. settings:
  130. host: cryptoparty-celle.de
  131. from: drone@tzend.de
  132. username:
  133. from_secret: email_username
  134. password:
  135. from_secret: email_password
  136. when:
  137. status: [ changed, failure ]