diff --git a/.github/workflows/package_c.yml b/.github/workflows/package_c.yml index 82567609e4..e932dd0eba 100644 --- a/.github/workflows/package_c.yml +++ b/.github/workflows/package_c.yml @@ -19,6 +19,8 @@ jobs: filename: libdeepmd_c_cu11.tar.gz steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Package C library run: ./source/install/docker_package_c.sh env: diff --git a/source/install/docker_package_c.sh b/source/install/docker_package_c.sh index 544c175a0a..3846daf93b 100755 --- a/source/install/docker_package_c.sh +++ b/source/install/docker_package_c.sh @@ -5,6 +5,7 @@ SCRIPT_PATH=$(dirname $(realpath -s $0)) docker run --rm -v ${SCRIPT_PATH}/../..:/root/deepmd-kit -w /root/deepmd-kit \ tensorflow/build:${TENSORFLOW_BUILD_VERSION:-2.15}-python3.11 \ /bin/sh -c "pip install \"tensorflow${TENSORFLOW_VERSION}\" cmake \ + && git config --global --add safe.directory /root/deepmd-kit \ && cd /root/deepmd-kit/source/install \ && CC=/dt9/usr/bin/gcc \ CXX=/dt9/usr/bin/g++ \