Skip to content

Commit

Permalink
Checkout resource before build pysdk
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhichang committed Jun 22, 2024
1 parent 700f4d2 commit 59deccf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,14 @@ jobs:
TZ=$(readlink -f /etc/localtime | awk -F '/zoneinfo/' '{print $2}')
sudo docker rm -f infinity_build && sudo docker run -d --privileged --name infinity_build --network=host -e TZ=$TZ -v $PWD:/infinity infiniflow/infinity_builder:centos7
- name: Modify CMakeLists
run: sed -i '/install.*TARGETS embedded_infinity_ext.*/d' src/CMakeLists.txt

- name: Build release version
run: sudo docker exec infinity_build bash -c "git config --global safe.directory \"*\" && cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64 -DCMAKE_JOB_POOL_LINK:STRING=link_pool -DCMAKE_JOB_POOLS:STRING=link_pool=1 -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release"

- name: Download resources
run: sudo docker exec infinity_build bash -c "rm -rf resource && git clone https://github.com/infiniflow/resource.git"
run: rm -rf resource && git clone --depth=1 https://github.com/infiniflow/resource.git

- name: Build RPM and DEB
run: sudo docker exec infinity_build bash -c "cd /infinity/cmake-build-release && cpack"
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,12 @@ jobs:
if: ${{ !cancelled() }} # always run this step even if previous steps failed
run: cat unittest_debug.log 2>/dev/null || true

- name: Download resources
run: rm -rf resource && git clone --depth=1 https://github.com/infiniflow/resource.git

- name: Install pysdk
if: ${{ !cancelled() && !failure() }}
run: sudo docker exec infinity_build bash -c "cd /infinity/ && pip uninstall -y infinity-sdk && pip install . -v --config-settings=cmake.build-type='Debug' --config-settings=build-dir='cmake-build-debug' --config-settings=cmake.targets='embedded_infinity_ext'"
run: sudo docker exec infinity_build bash -c "cd /infinity/ && pip uninstall -y infinity-sdk && pip install . -v --config-settings=cmake.build-type='Debug' --config-settings=build-dir='cmake-build-debug'"

- name: Start infinity pysdk & http_api debug version
if: ${{ !cancelled() && !failure() }}
Expand Down Expand Up @@ -163,9 +166,12 @@ jobs:
if: ${{ !cancelled() }} # always run this step even if previous steps failed
run: cat unittest_release.log 2>/dev/null || true

- name: Download resources
run: rm -rf resource && git clone --depth=1 https://github.com/infiniflow/resource.git

- name: Install pysdk
if: ${{ !cancelled() && !failure() }}
run: sudo docker exec infinity_build bash -c "cd /infinity/ && pip uninstall -y infinity-sdk && pip install . -v --config-settings=cmake.build-type='RelWithDebInfo' --config-settings=build-dir='cmake-build-release' --config-settings=cmake.targets='embedded_infinity_ext'"
run: sudo docker exec infinity_build bash -c "cd /infinity/ && pip uninstall -y infinity-sdk && pip install . -v --config-settings=cmake.build-type='RelWithDebInfo' --config-settings=build-dir='cmake-build-release'"

- name: pysdk local infinity test release version
if: ${{ !cancelled() && !failure() }}
Expand Down

0 comments on commit 59deccf

Please sign in to comment.