actions.py 772 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. shelltools.export("CYTHON", "/usr/bin/cython3")
  11. def setup():
  12. shelltools.system("cargo fetch --locked --target x86_64-unknown-linux-gnu")
  13. def build():
  14. shelltools.system("cargo build --release --frozen --all-targets")
  15. def check():
  16. # shelltools.system("cargo test --release || :")
  17. shelltools.system("RUSTC_BOOTSTRAP=1 cargo test --release --frozen")
  18. def install():
  19. pisitools.dobin("target/release/cbindgen")
  20. pisitools.dodoc("README*")