My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

67 lignes
1.6 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. package-and-publish:
  24. machine: true
  25. working_directory: ~/nnn
  26. steps:
  27. - run:
  28. name: "package with packagecore"
  29. command: |
  30. # Use latest installed python3 from pyenv
  31. export PYENV_VERSION="$(pyenv versions | grep -Po '\b3\.\d+\.\d+' | tail -1)"
  32. pip install packagecore
  33. packagecore -o ./dist/ ${CIRCLE_TAG#v}
  34. - run:
  35. name: "publish to GitHub"
  36. command: |
  37. go get github.com/tcnksm/ghr
  38. ghr -t ${GITHUB_API_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -replace ${CIRCLE_TAG} ./dist/
  39. workflows:
  40. version: 2
  41. test:
  42. jobs: &all-tests
  43. - gcc
  44. nightly:
  45. triggers:
  46. - schedule:
  47. cron: "0 0 * * *"
  48. filters:
  49. branches:
  50. only:
  51. - master
  52. jobs: *all-tests
  53. publish-github-release:
  54. jobs:
  55. - package-and-publish:
  56. filters:
  57. tags:
  58. only: /^v.*/
  59. branches:
  60. ignore: /.*/