From 6cfc74db09b210f551a087d5ff4384d06fdea74d Mon Sep 17 00:00:00 2001 From: Jiawei Li Date: Thu, 29 Aug 2024 10:58:04 +0800 Subject: [PATCH] Update build-and-test.yaml --- .github/workflows/build-and-test.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml index d8c8de5d2..4dbeb8b01 100644 --- a/.github/workflows/build-and-test.yaml +++ b/.github/workflows/build-and-test.yaml @@ -17,15 +17,14 @@ jobs: steps: - name: Pull latest codes run: - sudo su - root -c "source /root/.bashrc && - conda activate py38 && - pushd /root/Git.d/onnxruntime && + sudo su - root -c "pushd /root/Git.d/onnxruntime && git fetch --all && git rebase upstream/main && git submodule update --init --recursive && git reset --hard HEAD && git clean -dfx && popd" + - name: Build and test onnx runtime run: sudo su - root -c "pushd /root/Git.d/onnxruntime &&