entrypoint.sh 782 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. set -x
  4. separator() {
  5. echo -e "\n\n\n\n\n"
  6. }
  7. format_check() {
  8. make clang-format
  9. git --no-pager diff --exit-code
  10. }
  11. # base
  12. pacman -Syuu --noconfirm --needed \
  13. base \
  14. base-devel \
  15. git
  16. # dependencies
  17. pacman -Syuu --noconfirm --needed \
  18. clang \
  19. libxtst \
  20. gtk2 \
  21. gtk3 \
  22. anthy \
  23. libchewing \
  24. libappindicator-gtk2 \
  25. libappindicator-gtk3 \
  26. qt5-base
  27. echo 'en_US.UTF-8 UTF-8' >/etc/locale.gen && locale-gen
  28. set +x; separator; separator; separator; set -x
  29. # enter GitHub workspace directory path
  30. cd "$GITHUB_WORKSPACE"
  31. # check code formatting
  32. format_check
  33. # configure and build
  34. ./configure --prefix=/usr --qt5-im-module-path=/usr/lib/qt/plugins/platforminputcontexts/
  35. make -j "$(nproc)"