A C standard library for sh3eb-elf.
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.

59 lines
2.1KB

  1. # Build configuration for https://tea-ci.org
  2. # Tea CI is a fork of Drone CI with Cygwin/Msys2 support
  3. # Feel free to share Tea CI to more open source developers
  4. # https://docs.tea-ci.org/usage/overview/
  5. debug: true
  6. build:
  7. stage1:
  8. image: teaci/cygwin$$arch
  9. pull: true
  10. shell: cygwin$$arch
  11. commands:
  12. - uname -a
  13. - id
  14. - C:/cygwin-installer.exe --site http://mirrors.tea-ci.org/cygwin --local-package-dir Z:/tmp/cygwin -W -P gettext-devel,zlib-devel,libiconv,libiconv-devel,mingw64-i686-gcc-g++,mingw64-i686-zlib,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,mingw64-x86_64-zlib,dejagnu,dblatex,docbook-xml45,docbook-xsl,xmlto -q &> /dev/null
  15. - srcdir=`pwd`
  16. - builddir=/oss/build-stage1
  17. - installdir=/oss/install-stage1
  18. - mkdir -p ${builddir} ${installdir}
  19. - cd ${builddir}
  20. - ${srcdir}/configure --prefix=${installdir} -v
  21. - make
  22. - make install
  23. - sha1sum ${installdir}/bin/cygwin1.dll /bin/cygwin1.dll
  24. # FIXME: Is there an easy way to package new Cygwin then install locally using setup_x86{,-64}.exe?
  25. - cp -vf ${installdir}/bin/cygwin1.dll /bin/cygwin1.dll
  26. test:
  27. image: teaci/cygwin$$arch
  28. pull: true
  29. shell: /bin/bash # Call from Linux native shell, which is a special bonus of Tea CI.
  30. commands:
  31. # In the worst case, new cygwin1.dll might fail to start with exit status 0, which fools the CI as status success.
  32. # The following test does not rely on cygwin exit status, instead we trust Linux grep result.
  33. - cygwin$$arch -c "uname -a" | grep CYGWIN_NT
  34. - cygwin$$arch -c "id" | grep uid
  35. - cygwin$$arch -c "sha1sum --tag /bin/cygwin1.dll" | grep SHA1
  36. # Compile Cygwin again using the new cygwin1.dll
  37. stage2:
  38. image: teaci/cygwin$$arch
  39. pull: true
  40. shell: cygwin$$arch
  41. commands:
  42. - srcdir=`pwd`
  43. - builddir=/oss/build-stage2
  44. - installdir=/oss/install-stage2
  45. - mkdir -p ${builddir} ${installdir}
  46. - cd ${builddir}
  47. - ${srcdir}/configure --prefix=${installdir} -v
  48. - make
  49. - make install
  50. matrix:
  51. arch:
  52. - 64
  53. - 32