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