8282 - name : Build (static, Release)
8383 run : cmake --build build/${{ matrix.preset }} --config Release
8484
85+ - name : Package
86+ working-directory : build/${{ matrix.preset }}
87+ run : cpack -C Release
88+
89+ - name : Upload package
90+ uses : actions/upload-artifact@v6
91+ with :
92+ name : package-${{ matrix.compiler }}-static
93+ path : |
94+ build/${{ matrix.preset }}/Eggs.Assert-*.tar.gz
95+ build/${{ matrix.preset }}/Eggs.Assert-*.zip
96+ if-no-files-found : error
97+ retention-days : 7
98+
8599 # -----------------------------------------------------------------------
86100 # Shared library build
87101 # -----------------------------------------------------------------------
@@ -100,6 +114,20 @@ jobs:
100114 - name : Build (shared, Release)
101115 run : cmake --build build/${{ matrix.preset }}-shared --config Release
102116
117+ - name : Package
118+ working-directory : build/${{ matrix.preset }}
119+ run : cpack -C Release
120+
121+ - name : Upload package
122+ uses : actions/upload-artifact@v6
123+ with :
124+ name : package-${{ matrix.compiler }}-shared
125+ path : |
126+ build/${{ matrix.preset }}/Eggs.Assert-*.tar.gz
127+ build/${{ matrix.preset }}/Eggs.Assert-*.zip
128+ if-no-files-found : error
129+ retention-days : 7
130+
103131 # -----------------------------------------------------------------------
104132 # FetchContent variant — simulates embedding via FetchContent_MakeAvailable
105133 # -----------------------------------------------------------------------
@@ -143,53 +171,21 @@ jobs:
143171 --prefix ${{ runner.temp }}/eggs-assert-install-static-debug
144172 --config Debug
145173
146- - name : Upload installed package (static, Debug)
147- uses : actions/upload-artifact@v6
148- with :
149- name : installed-package-${{ matrix.compiler }}-static-debug
150- path : ${{ runner.temp }}/eggs-assert-install-static-debug
151- if-no-files-found : error
152- retention-days : 7
153-
154174 - name : Test Install (static, Release)
155175 run : cmake --install build/${{ matrix.preset }}
156176 --prefix ${{ runner.temp }}/eggs-assert-install-static-release
157177 --config Release
158178
159- - name : Upload installed package (static, Release)
160- uses : actions/upload-artifact@v6
161- with :
162- name : installed-package-${{ matrix.compiler }}-static-release
163- path : ${{ runner.temp }}/eggs-assert-install-static-release
164- if-no-files-found : error
165- retention-days : 7
166-
167179 - name : Test Install (shared, Debug)
168180 run : cmake --install build/${{ matrix.preset }}-shared
169181 --prefix ${{ runner.temp }}/eggs-assert-install-shared-debug
170182 --config Debug
171183
172- - name : Upload installed package (shared, Debug)
173- uses : actions/upload-artifact@v6
174- with :
175- name : installed-package-${{ matrix.compiler }}-shared-debug
176- path : ${{ runner.temp }}/eggs-assert-install-shared-debug
177- if-no-files-found : error
178- retention-days : 7
179-
180184 - name : Test Install (shared, Release)
181185 run : cmake --install build/${{ matrix.preset }}-shared
182186 --prefix ${{ runner.temp }}/eggs-assert-install-shared-release
183187 --config Release
184188
185- - name : Upload installed package (shared, Release)
186- uses : actions/upload-artifact@v6
187- with :
188- name : installed-package-${{ matrix.compiler }}-shared-release
189- path : ${{ runner.temp }}/eggs-assert-install-shared-release
190- if-no-files-found : error
191- retention-days : 7
192-
193189 - name : Clean Source and Build Tree
194190 run : cmake -E rm -rf ./include ./src ./build
195191
0 commit comments