Skip to content

Commit

Permalink
tmp_upload_target_of_client_cpp v2
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyekanren committed Aug 17, 2023
1 parent 2945d01 commit 7fecf6c
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/upload_target_from_rel12_on_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,6 @@ jobs:
echo "boost_library_dir=${{ github.workspace }}\boost_1_78_0\boost_1_78_0\stage\lib" >> "$GITHUB_OUTPUT"
#
echo "cmake_url=https://github.com/Kitware/CMake/releases/download/v3.23.1/cmake-3.23.1-windows-x86_64.zip" >> "$GITHUB_OUTPUT"
if [ "${{ matrix.java_version }}" = "8" ]; then
echo "upload_url=${{ needs.create-release-java8.outputs.upload_url }}" >> "$GITHUB_OUTPUT"
elif [ "${{ matrix.java_version }}" = "11" ]; then
echo "upload_url=${{ needs.create-release-java11.outputs.upload_url }}" >> "$GITHUB_OUTPUT"
else
echo "Found unknown jdk version. exit."
exit 1
fi
if [ "${{ matrix.iotdb_version }}" = "master" ]; then
echo "server_dir=iotdb-core/datanode" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -117,12 +108,12 @@ jobs:
7z a client-cpp-target.zip target
# upload client-cpp
- name: apache-iotdb-client-cpp-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.branch }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}.zip
- name: Upload client-cpp-target.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.iotdb-info.outputs.upload_url }}
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/${{ steps.iotdb-info.outputs.cpp_dir }}/client-cpp-target.zip
asset_name: client-cpp-target.zip
asset_content_type: application/zip
Expand All @@ -135,12 +126,12 @@ jobs:
7z a client-cpp-example-target.zip target
#
# upload client-cpp-example
- name: Upload apache-iotdb-client-cpp-example-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.matrix_version }}-${{ steps.iotdb-info.outputs.commit }}.zip using ${{ matrix.java_version }}
- name: Upload client-cpp-example-target.zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.iotdb-info.outputs.upload_url }}
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/iotdb/example/client-cpp-example/client-cpp-example-target.zip
asset_name: client-cpp-example-target.zip
asset_content_type: application/zip

0 comments on commit 7fecf6c

Please sign in to comment.