Skip to content

Commit

Permalink
no success,I have to xx
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyekanren committed Dec 26, 2023
1 parent 71eaeb8 commit 878a52a
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ jobs:
id: iotdb-info
shell: bash
run: |
echo "mkdir upload"
mkdir upload
cd iotdb
echo $(pwd)
echo "commit=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
Expand Down Expand Up @@ -179,33 +182,28 @@ jobs:
# setx BOOST_LIBRARY_DIR ${{ steps.iotdb-info.outputs.boost_library_dir }}
# setx Boost_INCLUDE_DIR ${{ steps.iotdb-info.outputs.boost_include_dir }}
# setx Boost_LIBRARY_DIR ${{ steps.iotdb-info.outputs.boost_library_dir }}
# move zip to upload folder
- name: Move zip to upload folder
# Comcpress client-cpp-example
- name: Comcpress client-cpp-example
shell: bash
run: |
cpp_dir=${{ steps.iotdb-info.outputs.cpp_dir }}
cpp_dir=${cpp_dir//\\//}
workspace=${{ github.workspace }}
workspace=${workspace//\\//}
echo "ls -l iotdb/${cpp_dir}/target"
ls -l iotdb/${cpp_dir}/target
echo "ls -l iotdb/example/client-cpp-example/target/"
ls -l iotdb/example/client-cpp-example/target/
cd iotdb/example/client-cpp-example/target/
echo $(pwd)
echo "7z a client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip client CMakeLists.txt SessionExample.cpp"
7z a client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip client CMakeLists.txt SessionExample.cpp
cd ${workspace}
echo "mkdir upload."
mkdir upload
echo "move file to upload folder."
mv iotdb/${cpp_dir}/target/client-cpp-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip upload/apache-iotdb-client-cpp-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.branch }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}.zip
mv iotdb/example/client-cpp-example/target/client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip 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
echo "ls -l upload"
ls -l upload
# move zip to upload folder
- name: Move zip to upload folder
shell: cmd
run: |
echo "dir iotdb\${{ steps.iotdb-info.outputs.cpp_dir }}\target"
dir iotdb\${{ steps.iotdb-info.outputs.cpp_dir }}\target
echo "dir iotdb\example\client-cpp-example\target"
dir iotdb\example\client-cpp-example\target
echo "move file to upload folder"
move iotdb\${{ steps.iotdb-info.outputs.cpp_dir }}\target\client-cpp-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip upload\apache-iotdb-client-cpp-x86_64-${{ matrix.os }}-${{ steps.iotdb-info.outputs.branch }}-${{ steps.iotdb-info.outputs.version }}-${{ steps.iotdb-info.outputs.commit }}.zip
move iotdb\example\client-cpp-example\target\client-cpp-example-${{ steps.iotdb-info.outputs.version }}-cpp-windows-x86_64.zip 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
echo "dir upload"
dir upload
# upload
- name: Upload cliet-cpp on ${{ steps.iotdb-info.outputs.branch }} using ${{ matrix.java_version }} on ${{ matrix.os }}
uses: ncipollo/[email protected]
Expand Down

0 comments on commit 878a52a

Please sign in to comment.