@@ -163,11 +163,35 @@ jobs:
163163 shell : bash
164164 run : 7z a -tzip pulsar-client-cpp-${{ matrix.triplet }}.zip ${{ env.INSTALL_DIR }}/*
165165
166- - name : Upload binaries to release
167- uses : svenstaro /upload-release-action@v2
166+ - name : Upload artifacts
167+ uses : actions /upload-artifact@v3
168168 with :
169- repo_token : ${{ secrets.GITHUB_TOKEN }}
170- file : pulsar-client-cpp-${{ matrix.triplet }}.zip
171- asset_name : pulsar-client-cpp-${{ matrix.triplet }}.zip
172- tag : ${{ github.ref }}
173- overwrite : true
169+ name : ${{ matrix.triplet }}
170+ path : ${{ env.INSTALL_DIR }}
171+
172+ - name : Build and package (Debug)
173+ shell : bash
174+ run : |
175+ BUILD_DIR=./build-debug
176+ INSTALL_DIR_DEBUG={{ env.INSTALL_DIR }}-Debug
177+ mkdir -p $BUILD_DIR
178+ cmake -B $BUILD_DIR \
179+ -G "${{ matrix.generator }}" ${{ matrix.arch }} \
180+ -DBUILD_TESTS=OFF \
181+ -DVCPKG_TRIPLET=${{ matrix.triplet }} \
182+ -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR_DEBUG \
183+ -DCMAKE_BUILD_TYPE=Debug \
184+ -S .
185+ cmake --build $BUILD_DIR --parallel --config Debug
186+ cmake --install $BUILD_DIR --config Debug
187+ cp dependencies.txt $INSTALL_DIR_DEBUG
188+
189+ - name : Zip artifact (Debug)
190+ shell : bash
191+ run : 7z a -tzip pulsar-client-cpp-${{ matrix.triplet }}-Debug.zip ${{ env.INSTALL_DIR }}-Debug/*
192+
193+ - name : Upload artifacts (Debug)
194+ uses : actions/upload-artifact@v3
195+ with :
196+ name : ${{ matrix.triplet }}-Debug
197+ path : ${{ env.INSTALL_DIR }}-Debug
0 commit comments