ci : use ubuntu-22.04 instead of ubuntu-latest

This commit is contained in:
Georgi Gerganov 2025-02-03 19:50:24 +02:00
parent b8ab126343
commit 234460987e
5 changed files with 31 additions and 31 deletions

View File

@ -10,8 +10,8 @@ on:
- whisper.h - whisper.h
jobs: jobs:
ubuntu-latest: ubuntu-22:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:

View File

@ -42,8 +42,8 @@ on:
- examples/dr_wav.h - examples/dr_wav.h
jobs: jobs:
ubuntu-latest: ubuntu-22:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
defaults: defaults:
run: run:
working-directory: bindings/ruby working-directory: bindings/ruby

View File

@ -16,8 +16,8 @@ env:
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
jobs: jobs:
ubuntu-latest: ubuntu-22:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -42,8 +42,8 @@ jobs:
cmake -B build cmake -B build
cmake --build build --config Release -j $(nproc)' cmake --build build --config Release -j $(nproc)'
ubuntu-latest-arm64: ubuntu-22-arm64:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -68,8 +68,8 @@ jobs:
cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a cmake -B build -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
cmake --build build --config Release -j $(nproc)' cmake --build build --config Release -j $(nproc)'
ubuntu-latest-arm-v7: ubuntu-22-arm-v7:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -129,8 +129,8 @@ jobs:
# cmake -B build # cmake -B build
# cmake --build build --config Release # cmake --build build --config Release
ubuntu-latest-gcc: ubuntu-22-gcc:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -157,8 +157,8 @@ jobs:
make make
ctest -L gh --output-on-failure' ctest -L gh --output-on-failure'
ubuntu-latest-gcc-arm64: ubuntu-22-gcc-arm64:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -185,8 +185,8 @@ jobs:
make make
ctest -L gh --output-on-failure' ctest -L gh --output-on-failure'
ubuntu-latest-gcc-arm-v7: ubuntu-22-gcc-arm-v7:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -213,8 +213,8 @@ jobs:
make make
ctest -L gh --output-on-failure' ctest -L gh --output-on-failure'
ubuntu-latest-clang: ubuntu-22-clang:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -244,8 +244,8 @@ jobs:
make make
ctest -L gh --output-on-failure' ctest -L gh --output-on-failure'
ubuntu-latest-gcc-sanitized: ubuntu-22-gcc-sanitized:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
fail-fast: false fail-fast: false
@ -584,7 +584,7 @@ jobs:
7z x sdl2.zip 7z x sdl2.zip
echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append echo "SDL2_DIR=${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt echo "${{ github.workspace }}\SDL2-${{ matrix.sdl2_ver }}\cmake" > SDL2_PATH.txt
- name: Configure CMake - name: Configure CMake
shell: cmd shell: cmd
run: | run: |
@ -594,16 +594,16 @@ jobs:
-DCMAKE_CUDA_ARCHITECTURES=all ^ -DCMAKE_CUDA_ARCHITECTURES=all ^
-DWHISPER_SDL2=${{ matrix.sdl2 }} ^ -DWHISPER_SDL2=${{ matrix.sdl2 }} ^
-DSDL2_DIR="%SDL2_DIR%" -DSDL2_DIR="%SDL2_DIR%"
- name: Build Project - name: Build Project
shell: cmd shell: cmd
run: | run: |
cd ./build cd ./build
cmake --build . --config ${{ matrix.build }} cmake --build . --config ${{ matrix.build }}
- name: Copy CUDA DLLs - name: Copy CUDA DLLs
run: | run: |
Get-ChildItem "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/" -Filter "*.dll" | Get-ChildItem "${{ steps.cuda-toolkit.outputs.CUDA_PATH }}/bin/" -Filter "*.dll" |
Copy-Item -Destination "build/bin/${{ matrix.build }}" Copy-Item -Destination "build/bin/${{ matrix.build }}"
- name: Copy SDL2.dll - name: Copy SDL2.dll
@ -617,7 +617,7 @@ jobs:
path: build/bin/${{ matrix.build }} path: build/bin/${{ matrix.build }}
emscripten: emscripten:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
@ -684,7 +684,7 @@ jobs:
run: xcodebuild -project examples/whisper.swiftui/whisper.swiftui.xcodeproj -scheme WhisperCppDemo -configuration ${{ matrix.build }} -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build run: xcodebuild -project examples/whisper.swiftui/whisper.swiftui.xcodeproj -scheme WhisperCppDemo -configuration ${{ matrix.build }} -sdk iphoneos CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= -destination 'generic/platform=iOS' build
android: android:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Clone - name: Clone
@ -714,7 +714,7 @@ jobs:
# TODO: disable because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/11019444420/job/30627193602 # TODO: disable because of following fail: https://github.com/ggerganov/whisper.cpp/actions/runs/11019444420/job/30627193602
# android_java: # android_java:
# runs-on: ubuntu-latest # runs-on: ubuntu-22.04
# #
# steps: # steps:
# - name: Clone # - name: Clone
@ -783,7 +783,7 @@ jobs:
# PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} # PGP_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
quantize: quantize:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
steps: steps:
- name: Clone - name: Clone

View File

@ -11,7 +11,7 @@ jobs:
name: Push Docker image to Docker Hub name: Push Docker image to Docker Hub
if: github.event.pull_request.draft == false if: github.event.pull_request.draft == false
runs-on: ubuntu-latest runs-on: ubuntu-22.04
env: env:
COMMIT_SHA: ${{ github.sha }} COMMIT_SHA: ${{ github.sha }}
strategy: strategy:

View File

@ -10,8 +10,8 @@ on:
- whisper.h - whisper.h
jobs: jobs:
addon_node-ubuntu-latest: addon_node-ubuntu-22:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
strategy: strategy:
matrix: matrix:
node-version: [ 16.x, 18.x ] node-version: [ 16.x, 18.x ]