From 4165293c38d869703b0e82fa4b069639d28a142a Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Mon, 20 Jan 2025 18:03:30 +0000 Subject: [PATCH] Attempt to fix weird git error by installing deps before clone --- .github/workflows/build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b98147320..39ea90d32 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -859,19 +859,20 @@ jobs: name: ubuntu-22-cuda (${{ matrix.cuda.version }} cap ${{ matrix.cuda.cap }}, e.g. ${{ matrix.cuda.example }}) steps: + - name: Dependencies + id: depends + env: + DEBIAN_FRONTEND: noninteractive + run: | + apt-get update + apt install -y cmake build-essential ninja-build libcurl4-openssl-dev libgomp1 git + - name: Clone id: checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Install dependencies - env: - DEBIAN_FRONTEND: noninteractive - run: | - apt update - apt install -y cmake build-essential ninja-build libcurl4-openssl-dev libgomp1 git - - name: Build with CMake run: | cmake -S . -B build -G Ninja \