-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (140 loc) · 6.04 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: Build Docker Images
on: push
jobs:
qbs:
name: "Qbs Docker builds"
strategy:
fail-fast: false
matrix:
distro: ['lunar']
qbs_version: ['1.24.1', '2.0.2', '2.1.2']
clang: [
{major: 15, source: 'apt'},
{major: 16, source: 'apt'},
{major: 17, source: 'llvm'}
]
gcc: [
{major: 11, source: 'apt'},
{major: 12, source: 'apt'},
{major: 13, source: 'apt'}
]
qt_version: ['6.4.3', '6.5.3']
include:
- distro: lunar
qbs_version: '2.1.2'
clang: {major: 17, source: 'llvm'}
gcc: {major: 13, source: 'apt'}
qt_version: '6.5.3'
gcc_tags: |
arbmind/qbs-gcc:latest
ghcr.io/arbmind/qbs-gcc:latest
gcc_qt_tags: |
arbmind/qbs-gcc-qt:latest
ghcr.io/arbmind/qbs-gcc-qt:latest
clang_tags: |
arbmind/qbs-clang:latest
ghcr.io/arbmind/qbs-clang:latest
clang_libstdcpp_tags: |
arbmind/qbs-clang-libstdcpp:latest
ghcr.io/arbmind/qbs-clang-libstdcpp:latest
clang_libstdcpp_qt_tags: |
arbmind/qbs-clang-libstdcpp-qt:latest
ghcr.io/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: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- 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 }}
ghcr.io/arbmind/qbs-gcc:${{ matrix.qbs_version }}-${{ matrix.gcc.major }}
${{ matrix.gcc_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
GCC_MAJOR=${{ matrix.gcc.major }}
GCC_SOURCE=${{ matrix.gcc.source }}
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 }}
ghcr.io/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 }}
GCC_SOURCE=${{ matrix.gcc.source }}
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 }}
ghcr.io/arbmind/qbs-clang:${{ matrix.qbs_version }}-${{ matrix.clang.major }}
${{ matrix.clang_tags }}
build-args: |
DISTRO=${{ matrix.distro }}
CLANG_MAJOR=${{ matrix.clang.major }}
CLANG_SOURCE=${{ matrix.clang.source }}
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 }}
ghcr.io/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 }}
CLANG_SOURCE=${{ matrix.clang.source }}
GCC_MAJOR=${{ matrix.gcc.major }}
GCC_SOURCE=${{ matrix.gcc.source }}
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 }}
ghcr.io/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 }}
CLANG_SOURCE=${{ matrix.clang.source }}
GCC_MAJOR=${{ matrix.gcc.major }}
GCC_SOURCE=${{ matrix.gcc.source }}
QT_VERSION=${{ matrix.qt_version }}
QBS_VERSION=${{ matrix.qbs_version }}