My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

89 lines
2.1 KiB

  1. version: 2
  2. jobs:
  3. gcc:
  4. docker:
  5. - image: ubuntu:18.04
  6. working_directory: ~/nnn
  7. environment:
  8. CC: gcc
  9. CI_FORCE_TEST: 1
  10. steps:
  11. - run:
  12. command: |
  13. apt update -qq
  14. apt install -y --no-install-recommends git gcc make pkg-config libncursesw5-dev libreadline-dev
  15. - checkout
  16. - run:
  17. command: |
  18. export CFLAGS=-Werror
  19. make clean
  20. make strip
  21. ls -l nnn
  22. make clean
  23. gcc-8:
  24. docker:
  25. - image: ubuntu:18.04
  26. working_directory: ~/nnn
  27. environment:
  28. CC: gcc-8
  29. CI_FORCE_TEST: 1
  30. steps:
  31. - run:
  32. command: |
  33. apt update -qq
  34. apt install -y --no-install-recommends git gcc-8 make pkg-config libncursesw5-dev libreadline-dev
  35. - checkout
  36. - run:
  37. command: |
  38. export CFLAGS=-Werror
  39. make clean
  40. make strip
  41. ls -l nnn
  42. make clean
  43. package-and-publish:
  44. machine: true
  45. working_directory: ~/nnn
  46. steps:
  47. - run:
  48. name: "package with packagecore"
  49. command: |
  50. # Use latest installed python3 from pyenv
  51. export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
  52. pip install packagecore
  53. packagecore -o ./dist/ ${CIRCLE_TAG#v}
  54. - run:
  55. name: "publish to GitHub"
  56. command: |
  57. go get github.com/tcnksm/ghr
  58. ghr -t ${GITHUB_API_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./dist/
  59. workflows:
  60. version: 2
  61. test:
  62. jobs: &all-tests
  63. - gcc
  64. - gcc-8
  65. nightly:
  66. triggers:
  67. - schedule:
  68. cron: "0 0 * * *"
  69. filters:
  70. branches:
  71. only:
  72. - master
  73. jobs: *all-tests
  74. publish-github-release:
  75. jobs:
  76. - package-and-publish:
  77. filters:
  78. tags:
  79. only: /^v.*/
  80. branches:
  81. ignore: /.*/