From b52422a0280c638d1fd3f0f65b6eb90f261f4cc0 Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Wed, 15 Nov 2023 19:23:41 +0000 Subject: [PATCH 1/2] Moved compile job to run on `ubuntu-20.04`, hopefully picking up an older version of glibc with broader support. --- .github/workflows/compile.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index 5dda197c..cdaeeff0 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -33,7 +33,7 @@ jobs: defines: '-DLLAMA_AVX2=OFF' - build: 'avx512' defines: '-DLLAMA_AVX512=ON' - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 with: @@ -90,7 +90,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-20.04, windows-latest] cuda: ['12.1.0', '11.7.1'] runs-on: ${{ matrix.os }} steps: @@ -132,7 +132,7 @@ jobs: path: .\build\bin\Release\llama.dll name: llama-bin-win-cublas-cu${{ matrix.cuda }}-x64.dll - name: Upload artifacts (Linux) - if: ${{ matrix.os == 'ubuntu-latest' }} + if: ${{ matrix.os == 'ubuntu-20.04' }} uses: actions/upload-artifact@v3 with: path: ./build/libllama.so From dc8c2309b66b91e3c86dc1a641f0a10d0c61ae30 Mon Sep 17 00:00:00 2001 From: Martin Evans Date: Wed, 15 Nov 2023 21:15:50 +0000 Subject: [PATCH 2/2] Fixed conditionals --- .github/workflows/compile.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml index cdaeeff0..f73a432a 100644 --- a/.github/workflows/compile.yml +++ b/.github/workflows/compile.yml @@ -85,7 +85,7 @@ jobs: name: llama-bin-win-${{ matrix.build }}-x64.dll compile-cublas: - if: ${{ github.event.inputs.cublas }} + if: ${{ github.event.inputs.cublas != 'false' }} name: Compile (cublas) strategy: fail-fast: false @@ -139,7 +139,7 @@ jobs: name: llama-bin-linux-cublas-cu${{ matrix.cuda }}-x64.so compile-macos: - if: ${{ github.event.inputs.macos }} + if: ${{ github.event.inputs.macos != 'false' }} name: Compile (MacOS) strategy: fail-fast: true