|
7 | 7 | branches: [ develop ] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - linux-gcc7: |
11 | | - name: ${{ matrix.os }}.${{ matrix.compiler.compiler }}.${{ matrix.flavor }} |
12 | | - runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - fail-fast: false |
15 | | - matrix: |
16 | | - os: [ linux ] |
17 | | - compiler: |
18 | | - - { compiler: GNU7, CC: gcc-7, CXX: g++-7 } |
19 | | - flavor: [ RelWithDebInfo, Release ] |
20 | | - container: debian:buster-slim |
21 | | - steps: |
22 | | - - name: Configure APT |
23 | | - env: |
24 | | - DEBIAN_FRONTEND: noninteractive |
25 | | - run: | |
26 | | - # Paper over occasional network flakiness of some mirrors. |
27 | | - echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry |
28 | | - # Do not install recommended packages |
29 | | - echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends |
30 | | - # Do not install suggested packages |
31 | | - echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests |
32 | | - # Assume yes |
33 | | - echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes |
34 | | - # Fix broken packages |
35 | | - echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissing |
36 | | - - name: Install/Update necessary packages |
37 | | - run: | |
38 | | - rm -rf /var/lib/apt/lists/*; |
39 | | - apt-get update; |
40 | | - apt-get upgrade; |
41 | | - apt-get install ca-certificates \ |
42 | | - cmake \ |
43 | | - g++-7 \ |
44 | | - gcc \ |
45 | | - gcc-7 \ |
46 | | - git \ |
47 | | - googletest \ |
48 | | - libjpeg-dev \ |
49 | | - libpugixml-dev \ |
50 | | - libxml2-utils \ |
51 | | - make \ |
52 | | - ninja-build \ |
53 | | - zlib1g-dev; |
54 | | - apt-get clean; |
55 | | - dpkg-divert --add --rename --divert /usr/bin/ld.original /usr/bin/ld; |
56 | | - ln -s /usr/bin/ld.gold /usr/bin/ld; |
57 | | - - uses: actions/checkout@v2 |
58 | | - name: Fetch/Checkout RawSpeed git repo |
59 | | - with: |
60 | | - path: '' |
61 | | - - name: Build And Test |
62 | | - env: |
63 | | - CC: ${{ matrix.compiler.CC }} |
64 | | - CXX: ${{ matrix.compiler.CXX }} |
65 | | - SRC_DIR: ${{ github.workspace }} |
66 | | - BUILD_DIR: ${{ github.workspace }}/../rawspeed-build |
67 | | - INSTALL_PREFIX: ${{ github.workspace }}/../rawspeed-install |
68 | | - ECO: -DALLOW_DOWNLOADING_GOOGLETEST=ON |
69 | | - FLAVOR: ${{ matrix.flavor }} |
70 | | - TARGET: build |
71 | | - run: | |
72 | | - cmake -E make_directory "${BUILD_DIR}"; |
73 | | - cmake -E make_directory "${INSTALL_PREFIX}"; |
74 | | - "${SRC_DIR}/.ci/ci-script.sh"; |
75 | | - linux-gcc8: |
76 | | - name: ${{ matrix.os }}.${{ matrix.compiler.compiler }}.${{ matrix.flavor }} |
77 | | - runs-on: ubuntu-latest |
78 | | - strategy: |
79 | | - fail-fast: false |
80 | | - matrix: |
81 | | - os: [ linux ] |
82 | | - compiler: |
83 | | - - { compiler: GNU8, CC: gcc-8, CXX: g++-8 } |
84 | | - flavor: [ RelWithDebInfo, Release ] |
85 | | - container: debian:buster-slim |
86 | | - steps: |
87 | | - - name: Configure APT |
88 | | - env: |
89 | | - DEBIAN_FRONTEND: noninteractive |
90 | | - run: | |
91 | | - # Paper over occasional network flakiness of some mirrors. |
92 | | - echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/80retry |
93 | | - # Do not install recommended packages |
94 | | - echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/80recommends |
95 | | - # Do not install suggested packages |
96 | | - echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/80suggests |
97 | | - # Assume yes |
98 | | - echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/80forceyes |
99 | | - # Fix broken packages |
100 | | - echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/80fixmissing |
101 | | - - name: Install/Update necessary packages |
102 | | - run: | |
103 | | - rm -rf /var/lib/apt/lists/*; |
104 | | - apt-get update; |
105 | | - apt-get upgrade; |
106 | | - apt-get install ca-certificates \ |
107 | | - cmake \ |
108 | | - g++-8 \ |
109 | | - gcc \ |
110 | | - gcc-8 \ |
111 | | - git \ |
112 | | - googletest \ |
113 | | - libjpeg-dev \ |
114 | | - libpugixml-dev \ |
115 | | - libxml2-utils \ |
116 | | - make \ |
117 | | - ninja-build \ |
118 | | - zlib1g-dev; |
119 | | - apt-get clean; |
120 | | - dpkg-divert --add --rename --divert /usr/bin/ld.original /usr/bin/ld; |
121 | | - ln -s /usr/bin/ld.gold /usr/bin/ld; |
122 | | - - uses: actions/checkout@v2 |
123 | | - name: Fetch/Checkout RawSpeed git repo |
124 | | - with: |
125 | | - path: '' |
126 | | - - name: Build And Test |
127 | | - env: |
128 | | - CC: ${{ matrix.compiler.CC }} |
129 | | - CXX: ${{ matrix.compiler.CXX }} |
130 | | - SRC_DIR: ${{ github.workspace }} |
131 | | - BUILD_DIR: ${{ github.workspace }}/../rawspeed-build |
132 | | - INSTALL_PREFIX: ${{ github.workspace }}/../rawspeed-install |
133 | | - ECO: -DALLOW_DOWNLOADING_GOOGLETEST=ON |
134 | | - FLAVOR: ${{ matrix.flavor }} |
135 | | - TARGET: build |
136 | | - run: | |
137 | | - cmake -E make_directory "${BUILD_DIR}"; |
138 | | - cmake -E make_directory "${INSTALL_PREFIX}"; |
139 | | - "${SRC_DIR}/.ci/ci-script.sh"; |
140 | | - linux-gcc9: |
141 | | - name: ${{ matrix.os }}.${{ matrix.compiler.compiler }}.${{ matrix.flavor }} |
142 | | - runs-on: ubuntu-latest |
143 | | - strategy: |
144 | | - fail-fast: false |
145 | | - matrix: |
146 | | - os: [ linux ] |
147 | | - compiler: |
148 | | - - { compiler: GNU9, CC: gcc-9, CXX: g++-9 } |
149 | | - flavor: [ RelWithDebInfo, Release ] |
150 | | - container: debian:bullseye-slim |
151 | | - steps: |
152 | | - - name: Configure APT |
153 | | - env: |
154 | | - DEBIAN_FRONTEND: noninteractive |
155 | | - run: | |
156 | | - # Paper over occasional network flakiness of some mirrors. |
157 | | - echo 'Acquire::Retries "10";' > /etc/apt/apt.conf.d/90retry |
158 | | - # Do not install recommended packages |
159 | | - echo 'APT::Install-Recommends "false";' > /etc/apt/apt.conf.d/90recommends |
160 | | - # Do not install suggested packages |
161 | | - echo 'APT::Install-Suggests "false";' > /etc/apt/apt.conf.d/90suggests |
162 | | - # Assume yes |
163 | | - echo 'APT::Get::Assume-Yes "true";' > /etc/apt/apt.conf.d/90forceyes |
164 | | - # Fix broken packages |
165 | | - echo 'APT::Get::Fix-Missing "true";' > /etc/apt/apt.conf.d/90fixmissing |
166 | | - - name: Install/Update necessary packages |
167 | | - run: | |
168 | | - rm -rf /var/lib/apt/lists/*; |
169 | | - apt-get update; |
170 | | - apt-get upgrade; |
171 | | - apt-get install ca-certificates \ |
172 | | - cmake \ |
173 | | - g++-9 \ |
174 | | - gcc \ |
175 | | - gcc-9 \ |
176 | | - git \ |
177 | | - googletest \ |
178 | | - libjpeg-dev \ |
179 | | - libpugixml-dev \ |
180 | | - libxml2-utils \ |
181 | | - make \ |
182 | | - ninja-build \ |
183 | | - zlib1g-dev; |
184 | | - apt-get clean; |
185 | | - dpkg-divert --add --rename --divert /usr/bin/ld.original /usr/bin/ld; |
186 | | - ln -s /usr/bin/ld.gold /usr/bin/ld; |
187 | | - - uses: actions/checkout@v2 |
188 | | - name: Fetch/Checkout RawSpeed git repo |
189 | | - with: |
190 | | - path: '' |
191 | | - - name: Build And Test |
192 | | - env: |
193 | | - CC: ${{ matrix.compiler.CC }} |
194 | | - CXX: ${{ matrix.compiler.CXX }} |
195 | | - SRC_DIR: ${{ github.workspace }} |
196 | | - BUILD_DIR: ${{ github.workspace }}/../rawspeed-build |
197 | | - INSTALL_PREFIX: ${{ github.workspace }}/../rawspeed-install |
198 | | - ECO: -DALLOW_DOWNLOADING_GOOGLETEST=ON |
199 | | - FLAVOR: ${{ matrix.flavor }} |
200 | | - TARGET: build |
201 | | - run: | |
202 | | - cmake -E make_directory "${BUILD_DIR}"; |
203 | | - cmake -E make_directory "${INSTALL_PREFIX}"; |
204 | | - "${SRC_DIR}/.ci/ci-script.sh"; |
205 | 10 | linux-gcc10: |
206 | 11 | name: ${{ matrix.os }}.${{ matrix.compiler.compiler }}.${{ matrix.flavor }} |
207 | 12 | runs-on: ubuntu-latest |
|
0 commit comments