|
79 | 79 | - name: Build (Release) |
80 | 80 | run: cmake --build build/${{ matrix.preset }} --config Release |
81 | 81 |
|
| 82 | + - name: Package |
| 83 | + working-directory: build/${{ matrix.preset }} |
| 84 | + run: cpack -C Release |
| 85 | + |
| 86 | + - name: Upload package |
| 87 | + uses: actions/upload-artifact@v6 |
| 88 | + with: |
| 89 | + name: package-${{ matrix.compiler }} |
| 90 | + path: | |
| 91 | + build/${{ matrix.preset }}/Eggs.Assert-*.tar.gz |
| 92 | + build/${{ matrix.preset }}/Eggs.Assert-*.zip |
| 93 | + if-no-files-found: error |
| 94 | + retention-days: 7 |
| 95 | + |
82 | 96 | # ----------------------------------------------------------------------- |
83 | 97 | # Shared library build |
84 | 98 | # ----------------------------------------------------------------------- |
@@ -140,27 +154,11 @@ jobs: |
140 | 154 | --prefix ${{ runner.temp }}/eggs-assert-install-static |
141 | 155 | --config Release |
142 | 156 |
|
143 | | - - name: Upload installed package (static) |
144 | | - uses: actions/upload-artifact@v6 |
145 | | - with: |
146 | | - name: installed-package-static-${{ matrix.compiler }} |
147 | | - path: ${{ runner.temp }}/eggs-assert-install-static |
148 | | - if-no-files-found: error |
149 | | - retention-days: 7 |
150 | | - |
151 | 157 | - name: Test Install (shared) |
152 | 158 | run: cmake --install build/${{ matrix.preset }}-shared |
153 | 159 | --prefix ${{ runner.temp }}/eggs-assert-install-shared |
154 | 160 | --config Release |
155 | 161 |
|
156 | | - - name: Upload installed package (shared) |
157 | | - uses: actions/upload-artifact@v6 |
158 | | - with: |
159 | | - name: installed-package-shared-${{ matrix.compiler }} |
160 | | - path: ${{ runner.temp }}/eggs-assert-install-shared |
161 | | - if-no-files-found: error |
162 | | - retention-days: 7 |
163 | | - |
164 | 162 | - name: Clean Source and Build Tree |
165 | 163 | run: cmake -E rm -rf ./include ./src ./build |
166 | 164 |
|
|
0 commit comments