-
Notifications
You must be signed in to change notification settings - Fork 0
114 lines (103 loc) · 4.31 KB
/
docker_build.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Build Docker Images
on: push
jobs:
qbs:
name: "Qbs Docker builds"
strategy:
fail-fast: false
matrix:
distro: ['jammy']
qbs_version: ['1.22.1', '1.23.2', '1.24.1']
clang_major: [14, 15, 16]
gcc_major: [10, 11, 12]
qt_version: ['6.4.3', '6.5.0']
include:
- distro: jammy
qbs_version: '1.24.1'
clang_major: 16
gcc_major: 12
qt_version: '6.5.0'
gcc_tags: arbmind/qbs-gcc:latest
gcc_qt_tags: arbmind/qbs-gcc-qt:latest
clang_tags: arbmind/qbs-clang:latest
clang_libstdcpp_tags: arbmind/qbs-clang-libstdcpp:latest
clang_libstdcpp_qt_tags: arbmind/qbs-clang-libstdcpp-qt:latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Qbs ${{ matrix.qbs_version }} + GCC ${{ matrix.gcc_major }}
uses: docker/build-push-action@v3
with:
# buildkitd-flags: --debug
target: qbs-gcc
push: ${{ github.event_name != 'pull_request' }}
tags: |
arbmind/qbs-gcc:${{ matrix.qbs_version }}-${{ matrix.gcc_major }}
${{ matrix.gcc_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
GCC_MAJOR=${{ matrix.gcc_major }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}
- name: Qbs ${{ matrix.qbs_version }} + GCC ${{ matrix.gcc_major }} + Qt ${{ matrix.qt_version }}
uses: docker/build-push-action@v3
with:
target: qbs-gcc-qt
push: ${{ github.event_name != 'pull_request' }}
tags: |
arbmind/qbs-gcc-qt:${{ matrix.qbs_version }}-${{ matrix.gcc_major }}-${{ matrix.qt_version }}
${{ matrix.gcc_qt_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
GCC_MAJOR=${{ matrix.gcc_major }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}
- name: Qbs ${{ matrix.qbs_version }} + Clang ${{ matrix.clang_major }}
uses: docker/build-push-action@v3
with:
target: qbs-clang
push: ${{ github.event_name != 'pull_request' }}
tags: |
arbmind/qbs-clang:${{ matrix.qbs_version }}-${{ matrix.clang_major }}
${{ matrix.clang_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
CLANG_MAJOR=${{ matrix.clang_major }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}
- name: Qbs ${{ matrix.qbs_version }} + Clang ${{ matrix.clang_major }} + LibStdC++ ${{ matrix.gcc_major }}
uses: docker/build-push-action@v3
with:
target: qbs-clang-libstdcpp
push: ${{ github.event_name != 'pull_request' }}
tags: |
arbmind/qbs-clang-libstdcpp:${{ matrix.qbs_version }}-${{ matrix.clang_major }}-${{ matrix.gcc_major }}
${{ matrix.clang_libstdcpp_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
CLANG_MAJOR=${{ matrix.clang_major }}
GCC_MAJOR=${{ matrix.gcc_major }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}
- name: Qbs ${{ matrix.qbs_version }} + Clang ${{ matrix.clang_major }} + LibStdC++ ${{ matrix.gcc_major }} + Qt ${{ matrix.qt_version }}
uses: docker/build-push-action@v3
with:
target: qbs-clang-libstdcpp-qt
push: ${{ github.event_name != 'pull_request' }}
tags: |
arbmind/qbs-clang-libstdcpp-qt:${{ matrix.qbs_version }}-${{ matrix.clang_major }}-${{ matrix.gcc_major }}-${{ matrix.qt_version }}
${{ matrix.clang_libstdcpp_qt_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
CLANG_MAJOR=${{ matrix.clang_major }}
GCC_MAJOR=${{ matrix.gcc_major }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}