5555 set -ex
5656 set -o pipefail
5757 python ./scripts/extract-release-notes.py --target-git-version --describe-path-changes "./samples/constitution" | tee rel-notes.md
58- - name : " Upload .deb Package "
58+ - name : " Upload Release Notes "
5959 uses : actions/upload-artifact@v4
6060 with :
6161 name : relnotes
@@ -67,17 +67,10 @@ jobs:
6767 strategy :
6868 matrix :
6969 platform :
70- - name : virtual
71- os : ubuntu
72- image : ghcr.io/microsoft/ccf/ci/default:build-14-01-2025
73- test_filter : " benchmark|unit"
74- - name : snp
75- os : ubuntu
76- image : ghcr.io/microsoft/ccf/ci/default:build-14-01-2025
7770 - name : virtual
7871 os : azure-linux
7972 image : mcr.microsoft.com/azurelinux/base/core:3.0
80- test_filter : " benchmark|unit|lts "
73+ test_filter : " benchmark|unit"
8174 - name : snp
8275 os : azure-linux
8376 image : mcr.microsoft.com/azurelinux/base/core:3.0
8982
9083 steps :
9184 - name : " Checkout dependencies"
92- if : ${{ matrix.platform.os == 'azure-linux' }}
9385 shell : bash
9486 run : |
9587 gpg --import /etc/pki/rpm-gpg/MICROSOFT-RPM-GPG-KEY
10193 fetch-depth : 0
10294
10395 - name : " Install dependencies"
104- if : ${{ matrix.platform.os == 'azure-linux' }}
10596 shell : bash
10697 run : |
10798 set -ex
@@ -117,16 +108,6 @@ jobs:
117108 cmake -GNinja -DCOMPILE_TARGET=${{ matrix.platform.name }} -DCLIENT_PROTOCOLS_TEST=ON -DCMAKE_BUILD_TYPE=Release ..
118109 ninja -v | tee build.log
119110
120- - name : " Install Extended Testing Tools"
121- if : ${{ matrix.platform.os == 'ubuntu' && matrix.platform.name == 'virtual' }}
122- run : |
123- set -ex
124- sudo apt-get -y update
125- sudo apt install ansible -y
126- cd getting_started/setup_vm
127- ansible-playbook ccf-extended-testing.yml
128- shell : bash
129-
130111 - name : " Test ${{ matrix.platform.name }}"
131112 if : " ${{ matrix.platform.name == 'virtual' }}"
132113 run : |
@@ -143,37 +124,19 @@ jobs:
143124 ./tests.sh --timeout 360 --output-on-failure -LE "suite|${{ matrix.platform.test_filter }}"
144125 shell : bash
145126
146- - name : " Upload logs for ${{ matrix.platform.os }}-${{ matrix.platform. name }}"
127+ - name : " Upload logs for ${{ matrix.platform.name }}"
147128 if : success() || failure()
148129 uses : actions/upload-artifact@v4
149130 with :
150- name : logs-${{ matrix.platform.os }}-${{ matrix.platform. name }}
131+ name : logs-${{ matrix.platform.name }}
151132 path : |
152133 build/workspace/*/*.config.json
153134 build/workspace/*/out
154135 build/workspace/*/err
155136 build/workspace/*.ledger/*
156137 if-no-files-found : ignore
157138
158- - name : " Make .deb Package"
159- if : " ${{ matrix.platform.os == 'ubuntu' }}"
160- id : make_deb
161- run : |
162- set -ex
163- set -o pipefail
164- cd build
165- cmake -L .. 2>/dev/null | grep CMAKE_INSTALL_PREFIX: | cut -d = -f 2 > /tmp/install_prefix
166- cpack -V -G DEB
167- INITIAL_PKG=`ls *.deb`
168- CCF_GITHUB_PKG=${INITIAL_PKG//\~/_}
169- if [[ "$INITIAL_PKG" != "$CCF_GITHUB_PKG" ]]; then
170- mv $INITIAL_PKG $CCF_GITHUB_PKG
171- fi
172- echo "name=$CCF_GITHUB_PKG" >> $GITHUB_OUTPUT
173- shell : bash
174-
175139 - name : " Make .rpm (devel) Package"
176- if : " ${{ matrix.platform.os == 'azure-linux' }}"
177140 id : make_rpm_devel
178141 run : |
179142 set -ex
@@ -190,7 +153,6 @@ jobs:
190153 shell : bash
191154
192155 - name : " Make .rpm (run) Package"
193- if : " ${{ matrix.platform.os == 'azure-linux' }}"
194156 id : make_rpm_run
195157 run : |
196158 set -ex
@@ -211,16 +173,7 @@ jobs:
211173 echo "name=$CCF_GITHUB_PKG" >> $GITHUB_OUTPUT
212174 shell : bash
213175
214- - name : " Install CCF Debian package"
215- if : " ${{ matrix.platform.os == 'ubuntu' }}"
216- run : |
217- set -ex
218- cd build
219- sudo apt -y install ./${{ steps.make_deb.outputs.name }}
220- shell : bash
221-
222- - name : " Install CCF RPM package"
223- if : " ${{ matrix.platform.os == 'azure-linux' }}"
176+ - name : " Install CCF package"
224177 run : |
225178 set -ex
226179 cd build
@@ -251,43 +204,34 @@ jobs:
251204 ./tests/test_install_build.sh -DCOMPILE_TARGET=${{ matrix.platform.name }}
252205 shell : bash
253206
254- - name : " Upload .deb Package"
255- if : " ${{ matrix.platform.os == 'ubuntu' }}"
256- uses : actions/upload-artifact@v4
257- with :
258- name : pkg-${{ matrix.platform.os }}-${{ matrix.platform.name }}
259- path : build/${{ steps.make_deb.outputs.name }}
260-
261207 - name : " Upload .rpm Package"
262- if : " ${{ matrix.platform.os == 'azure-linux' }}"
263208 uses : actions/upload-artifact@v4
264209 with :
265- name : pkg-${{ matrix.platform.os }}-${{ matrix.platform. name }}
210+ name : pkg-${{ matrix.platform.name }}
266211 path : build/${{ steps.make_rpm_run.outputs.name }}
267212
268213 - name : " Upload -devel.rpm Package"
269- if : " ${{ matrix.platform.os == 'azure-linux' }}"
270214 uses : actions/upload-artifact@v4
271215 with :
272- name : pkg-${{ matrix.platform.os }}-${{ matrix.platform. name }}-devel
216+ name : pkg-${{ matrix.platform.name }}-devel
273217 path : build/${{ steps.make_rpm_devel.outputs.name }}
274218
275219 - name : " Upload Compatibility Report"
276- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
220+ if : " ${{ matrix.platform.name == 'virtual' }}"
277221 uses : actions/upload-artifact@v4
278222 with :
279223 name : compatibility
280224 path : build/compatibility_report.json
281225
282226 - name : " Upload TLS Report"
283- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
227+ if : " ${{ matrix.platform.name == 'virtual' }}"
284228 uses : actions/upload-artifact@v4
285229 with :
286230 name : tls
287231 path : build/tls_report.html
288232
289233 - name : " Build Python Wheel"
290- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
234+ if : " ${{ matrix.platform.name == 'virtual' }}"
291235 id : build_wheel
292236 run : |
293237 set -ex
@@ -301,14 +245,14 @@ jobs:
301245 shell : bash
302246
303247 - name : " Upload Python Wheel"
304- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
248+ if : " ${{ matrix.platform.name == 'virtual' }}"
305249 uses : actions/upload-artifact@v4
306250 with :
307251 name : wheel
308252 path : python/${{ steps.build_wheel.outputs.name }}
309253
310254 - name : " Build TS Package"
311- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
255+ if : " ${{ matrix.platform.name == 'virtual' }}"
312256 id : build_tstgz
313257 run : |
314258 set -ex
@@ -323,7 +267,7 @@ jobs:
323267 shell : bash
324268
325269 - name : " Upload TS Package"
326- if : " ${{ matrix.platform.os == 'ubuntu' && matrix.platform. name == 'virtual' }}"
270+ if : " ${{ matrix.platform.name == 'virtual' }}"
327271 uses : actions/upload-artifact@v4
328272 with :
329273 name : tstgz
0 commit comments