official.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: Official
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. linux:
  9. name: Qt 4.8 on Linux
  10. runs-on: ubuntu-20.04
  11. steps:
  12. - name: checkout source
  13. uses: actions/checkout@v2
  14. with:
  15. path: wkhtmltopdf
  16. submodules: true
  17. - name: checkout packaging
  18. uses: actions/checkout@v2
  19. with:
  20. repository: wkhtmltopdf/packaging
  21. path: packaging
  22. - name: configure docker
  23. run: |
  24. echo '{ "experimental": true }' | sudo tee /etc/docker/daemon.json
  25. sudo systemctl restart docker
  26. - name: build
  27. run: cd packaging && python3 ./build package-docker buster-amd64 ../wkhtmltopdf
  28. macos:
  29. name: Qt 4.8 on macOS
  30. runs-on: macos-10.15
  31. steps:
  32. - name: checkout source
  33. uses: actions/checkout@v2
  34. with:
  35. path: wkhtmltopdf
  36. submodules: true
  37. - name: checkout packaging
  38. uses: actions/checkout@v2
  39. with:
  40. repository: wkhtmltopdf/packaging
  41. path: packaging
  42. - name: setup build environment
  43. run: |
  44. brew install conan
  45. pip3 install pyyaml
  46. sudo gem install fpm --no-document
  47. sudo xcode-select --switch /Library/Developer/CommandLineTools
  48. sed -i -e 's/CFLAGS CXXFLAGS LDFLAGS/CFLAGS CXXFLAGS OBJECTIVE_CFLAGS LDFLAGS/g' wkhtmltopdf/qt/configure
  49. sed -i -e 's/compiler.version=9.0/compiler.version=12.0/g' packaging/.conan/profiles/macos-cocoa
  50. - name: build
  51. run: cd packaging && MACOSX_DEPLOYMENT_TARGET=10.7 python3 ./build vagrant macos-cocoa --clean --version - - ../wkhtmltopdf
  52. windows:
  53. name: Qt 4.8 on Windows
  54. runs-on: windows-2019
  55. steps:
  56. - name: checkout source
  57. uses: actions/checkout@v2
  58. with:
  59. path: wkhtmltopdf
  60. submodules: true
  61. - name: checkout packaging
  62. uses: actions/checkout@v2
  63. with:
  64. repository: wkhtmltopdf/packaging
  65. path: packaging
  66. - name: setup build environment
  67. run: |
  68. choco install -yr --no-progress vcbuildtools -ia "/Full"
  69. pip install -q conan
  70. cmd /c attrib "C:\Program Files (x86)\Windows Kits\10\include\wdf" +H
  71. - name: build
  72. run: cd packaging && python ./build vagrant msvc2015-win64 --clean --version - - ../wkhtmltopdf