|
1 |
| -name: CI |
2 |
| - |
3 |
| -on: |
4 |
| - pull_request: |
5 |
| - push: |
6 |
| - branches: |
7 |
| - - main |
8 |
| - |
9 |
| -jobs: |
10 |
| - Windows: |
11 |
| - strategy: |
12 |
| - fail-fast: false |
13 |
| - matrix: |
14 |
| - config: |
15 |
| - - native_mixed |
16 |
| - runs-on: windows-2022 |
17 |
| - steps: |
18 |
| - - name: Checkout code |
19 |
| - uses: actions/checkout@v4 |
20 |
| - |
21 |
| - - name: Setup python 3.8 |
22 |
| - uses: actions/setup-python@v5 |
23 |
| - with: |
24 |
| - python-version: '3.8' |
25 |
| - |
26 |
| - - name: Install packages |
27 |
| - run: | |
28 |
| - choco.exe install pkgconfiglite |
29 |
| -
|
30 |
| - - name: Install QT |
31 |
| - uses: jurplel/install-qt-action@v4 |
32 |
| - with: |
33 |
| - version: 5.15.2 |
34 |
| - modules: "qtwebengine" |
35 |
| - setup-python: false |
36 |
| - |
37 |
| - - name: Setup MSVC compiler |
38 |
| - uses: bus1/cabuild/action/msdevshell@v1 |
39 |
| - with: |
40 |
| - architecture: x64 |
41 |
| - |
42 |
| - - name: Install dependencies |
43 |
| - uses: kiwix/kiwix-build/actions/dl_deps_archive@main |
44 |
| - with: |
45 |
| - target_platform: win-x86_64-mixed |
46 |
| - |
47 |
| - - name: Compile |
48 |
| - shell: cmd |
49 |
| - run: | |
50 |
| - set PKG_CONFIG_PATH=%cd%\BUILD_win-amd64\INSTALL\lib\pkgconfig |
51 |
| - qmake PREFIX=%cd%\BUILD_win-amd64\INSTALL |
52 |
| - nmake release-all |
53 |
| -
|
54 |
| - Linux: |
55 |
| - strategy: |
56 |
| - fail-fast: false |
57 |
| - matrix: |
58 |
| - target: |
59 |
| - - jammy-qt5 |
60 |
| - - noble-qt6.4 |
61 |
| - - oracular-qt6.6 |
62 |
| - include: |
63 |
| - - target: jammy-qt5 |
64 |
| - image_variant: jammy |
65 |
| - lib_postfix: '/x86_64-linux-gnu' |
66 |
| - qt_version: 5 |
67 |
| - - target: noble-qt6.4 |
68 |
| - image_variant: noble |
69 |
| - lib_postfix: '/x86_64-linux-gnu' |
70 |
| - qt_version: 6 |
71 |
| - - target: oracular-qt6.6 |
72 |
| - image_variant: oracular |
73 |
| - lib_postfix: '/x86_64-linux-gnu' |
74 |
| - qt_version: 6 |
75 |
| - env: |
76 |
| - HOME: /home/runner |
77 |
| - runs-on: ubuntu-22.04 |
78 |
| - container: |
79 |
| - image: ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2025-01-05 |
80 |
| - |
81 |
| - steps: |
82 |
| - - name: Install dependencies |
83 |
| - uses: kiwix/kiwix-build/actions/dl_deps_archive@main |
84 |
| - with: |
85 |
| - target_platform: linux-x86_64-dyn |
86 |
| - |
87 |
| - - name: Retrieve source code |
88 |
| - uses: actions/checkout@v4 |
89 |
| - |
90 |
| - - name: Compile source code |
91 |
| - shell: bash |
92 |
| - env: |
93 |
| - PKG_CONFIG_PATH: "/home/runner/BUILD_linux-x86_64/INSTALL/lib/pkgconfig:/home/runner/BUILD_linux-x86_64/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig" |
94 |
| - run: | |
95 |
| - export QT_SELECT=qt${{matrix.qt_version}} |
96 |
| - qmake --version |
97 |
| - qmake PREFIX=$HOME/BUILD_linux-x86_64/INSTALL |
98 |
| - make |
| 1 | +name: CI |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + branches: |
| 7 | + - main |
| 8 | + |
| 9 | +jobs: |
| 10 | + Windows: |
| 11 | + strategy: |
| 12 | + fail-fast: false |
| 13 | + matrix: |
| 14 | + config: |
| 15 | + - native_mixed |
| 16 | + runs-on: windows-2022 |
| 17 | + steps: |
| 18 | + - name: Checkout code |
| 19 | + uses: actions/checkout@v4 |
| 20 | + |
| 21 | + - name: Setup python 3.8 |
| 22 | + uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: '3.8' |
| 25 | + |
| 26 | + - name: Install packages |
| 27 | + run: | |
| 28 | + choco.exe install pkgconfiglite |
| 29 | +
|
| 30 | + - name: Install QT |
| 31 | + uses: jurplel/install-qt-action@v4 |
| 32 | + with: |
| 33 | + version: 5.15.2 |
| 34 | + modules: "qtwebengine" |
| 35 | + setup-python: false |
| 36 | + |
| 37 | + - name: Setup MSVC compiler |
| 38 | + uses: bus1/cabuild/action/msdevshell@v1 |
| 39 | + with: |
| 40 | + architecture: x64 |
| 41 | + |
| 42 | + - name: Install dependencies |
| 43 | + uses: kiwix/kiwix-build/actions/dl_deps_archive@main |
| 44 | + with: |
| 45 | + target_platform: win-x86_64-mixed |
| 46 | + |
| 47 | + - name: Compile |
| 48 | + shell: cmd |
| 49 | + run: | |
| 50 | + set PKG_CONFIG_PATH=%cd%\BUILD_win-amd64\INSTALL\lib\pkgconfig |
| 51 | + qmake PREFIX=%cd%\BUILD_win-amd64\INSTALL |
| 52 | + nmake release-all |
| 53 | +
|
| 54 | + Linux: |
| 55 | + strategy: |
| 56 | + fail-fast: false |
| 57 | + matrix: |
| 58 | + target: |
| 59 | + - jammy-qt5 |
| 60 | + - noble-qt6.4 |
| 61 | + - oracular-qt6.6 |
| 62 | + include: |
| 63 | + - target: jammy-qt5 |
| 64 | + image_variant: jammy |
| 65 | + lib_postfix: '/x86_64-linux-gnu' |
| 66 | + qt_version: 5 |
| 67 | + - target: noble-qt6.4 |
| 68 | + image_variant: noble |
| 69 | + lib_postfix: '/x86_64-linux-gnu' |
| 70 | + qt_version: 6 |
| 71 | + - target: oracular-qt6.6 |
| 72 | + image_variant: oracular |
| 73 | + lib_postfix: '/x86_64-linux-gnu' |
| 74 | + qt_version: 6 |
| 75 | + env: |
| 76 | + HOME: /home/runner |
| 77 | + runs-on: ubuntu-22.04 |
| 78 | + container: |
| 79 | + image: ghcr.io/kiwix/kiwix-build_ci_${{matrix.image_variant}}:2025-01-05 |
| 80 | + |
| 81 | + steps: |
| 82 | + - name: Install dependencies |
| 83 | + uses: kiwix/kiwix-build/actions/dl_deps_archive@main |
| 84 | + with: |
| 85 | + target_platform: linux-x86_64-dyn |
| 86 | + |
| 87 | + - name: Retrieve source code |
| 88 | + uses: actions/checkout@v4 |
| 89 | + |
| 90 | + - name: Compile source code |
| 91 | + shell: bash |
| 92 | + env: |
| 93 | + PKG_CONFIG_PATH: "/home/runner/BUILD_linux-x86_64/INSTALL/lib/pkgconfig:/home/runner/BUILD_linux-x86_64/INSTALL/lib${{matrix.lib_postfix}}/pkgconfig" |
| 94 | + run: | |
| 95 | + export QT_SELECT=qt${{matrix.qt_version}} |
| 96 | + qmake --version |
| 97 | + qmake PREFIX=$HOME/BUILD_linux-x86_64/INSTALL |
| 98 | + make |
0 commit comments