Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .github/workflows/prebuilds-lib-infer-diffusion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,26 +224,6 @@ jobs:
name: Update apt sources
run: sudo apt-get update

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Install ccache on Linux
run: sudo apt-get install -y ccache

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Get ccache cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}
path: ~/.cache/ccache-arm

- if: ${{ matrix.platform == 'linux' }}
name: Install required packages linux
run: sudo apt-get install libxi-dev libxtst-dev libxrandr-dev
Expand Down
78 changes: 1 addition & 77 deletions .github/workflows/prebuilds-ocr-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,71 +143,12 @@ jobs:
chmod +x llvm.sh
sudo ./llvm.sh 19 all

- if: ${{ matrix.variant == 'ubuntu' }}
name: Install ccache on Linux
run: sudo apt-get install -y ccache

- if: ${{ startsWith(matrix.os, 'macos') }}
name: Install ccache on macOS
run: brew install ccache

- if: ${{ matrix.os != 'windows-2022' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z

- if: ${{ matrix.os != 'windows-2022' }}
name: Restore ccache cache
id: cache-ccache
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~/.cache/ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-${{ github.sha }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-
ccache-${{ matrix.platform }}-${{ matrix.arch }}-

- if: ${{ matrix.os == 'windows-2022' }}
name: Configure windows runner
run: |
git config --system core.longpaths true
choco upgrade llvm -y --no-progress

- if: ${{ matrix.os == 'windows-2022' }}
name: Install and configure ccache on Windows
shell: pwsh
run: |
# Download ccache directly from GitHub releases
$ccacheVersion = "4.10.2"
$ccacheUrl = "https://github.com/ccache/ccache/releases/download/v$ccacheVersion/ccache-$ccacheVersion-windows-x86_64.zip"
$ccacheZip = "$env:TEMP\ccache.zip"
$ccacheDir = "C:\ccache"

Invoke-WebRequest -Uri $ccacheUrl -OutFile $ccacheZip
Expand-Archive -Path $ccacheZip -DestinationPath $env:TEMP -Force
New-Item -ItemType Directory -Path $ccacheDir -Force | Out-Null
Move-Item -Path "$env:TEMP\ccache-$ccacheVersion-windows-x86_64\*" -Destination $ccacheDir -Force

# Add to PATH for subsequent steps
echo "C:\ccache" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

# Configure ccache
& "C:\ccache\ccache.exe" --set-config=max_size=2G
& "C:\ccache\ccache.exe" --set-config=compression=true
& "C:\ccache\ccache.exe" -z

- if: ${{ matrix.os == 'windows-2022' }}
name: Restore ccache cache (Windows)
id: cache-ccache-win
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~\AppData\Local\ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.sha }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}-

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
with:
Expand Down Expand Up @@ -311,7 +252,7 @@ jobs:

- name: Generate
working-directory: ${{ env.PKG_DIR }}
run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }} -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }}

- name: Run bare-make build
working-directory: ${{ env.PKG_DIR }}
Expand All @@ -332,23 +273,6 @@ jobs:
find prebuilds -name "*.bare" -exec strip {} \;
fi

- name: Show ccache stats
run: ccache -s

- if: ${{ matrix.os != 'windows-2022' && steps.cache-ccache.outputs.cache-hit != 'true' }}
name: Save ccache cache
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~/.cache/ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-${{ github.sha }}

- if: ${{ matrix.os == 'windows-2022' && steps.cache-ccache-win.outputs.cache-hit != 'true' }}
name: Save ccache cache (Windows)
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~\AppData\Local\ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.sha }}

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # 7.0.0
with:
name: onnx-ocr-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}
Expand Down
21 changes: 0 additions & 21 deletions .github/workflows/prebuilds-qvac-lib-infer-llamacpp-embed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,27 +225,6 @@ jobs:
name: Update apt sources
run: sudo apt-get update

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Install ccache on Linux
run: |
sudo apt-get install -y ccache

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Get ccache cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}
path: ~/.cache/ccache-arm

- if: ${{ matrix.platform == 'linux' }}
name: Install required packages linux
run: sudo apt-get install libxi-dev libxtst-dev libxrandr-dev
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/prebuilds-qvac-lib-infer-llamacpp-llm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,26 +232,6 @@ jobs:
name: Update apt sources
run: sudo apt-get update

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Install ccache on Linux
run: sudo apt-get install -y ccache

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV

- if: ${{ matrix.os == 'ubuntu-22.04-arm' }}
name: Get ccache cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}
path: ~/.cache/ccache-arm

- if: ${{ matrix.platform == 'linux' }}
name: Install required packages linux
run: sudo apt-get install libxi-dev libxtst-dev libxrandr-dev
Expand Down
64 changes: 4 additions & 60 deletions .github/workflows/prebuilds-qvac-lib-infer-onnx-tts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,69 +157,16 @@ jobs:
chmod +x llvm.sh
sudo ./llvm.sh 19 all

- if: ${{ startsWith(matrix.os, 'ubuntu') }}
name: Install ccache on Linux
run: sudo apt-get install -y ccache

- if: ${{ startsWith(matrix.os, 'macos') }}
name: Install ccache on macOS
run: |
brew install ccache
# Unlink Homebrew fmt to prevent header conflicts with vcpkg's fmt
# (Homebrew fmt 12.x headers conflict with vcpkg fmt 11.x on Intel Macs)
brew unlink fmt || true

- if: ${{ matrix.platform != 'win32' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV

- if: ${{ matrix.platform != 'win32' }}
name: Get ccache cache
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-${{ hashFiles('packages/qvac-lib-infer-onnx-tts/vcpkg.json') }}
path: ~/.cache/ccache
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-
ccache-${{ matrix.platform }}-${{ matrix.arch }}-
name: Unlink Homebrew fmt
# Unlink Homebrew fmt to prevent header conflicts with vcpkg's fmt
# (Homebrew fmt 12.x headers conflict with vcpkg fmt 11.x on Intel Macs)
run: brew unlink fmt || true

- if: ${{ matrix.platform == 'win32' }}
name: Configure windows runner
run: |
git config --system core.longpaths true
$ccacheVersion = "4.10.2"
$ccacheUrl = "https://github.com/ccache/ccache/releases/download/v$ccacheVersion/ccache-$ccacheVersion-windows-x86_64.zip"
$ccacheZip = "$env:TEMP\ccache.zip"
$ccacheDir = "C:\ccache"
Invoke-WebRequest -Uri $ccacheUrl -OutFile $ccacheZip
Expand-Archive -Path $ccacheZip -DestinationPath $ccacheDir -Force
$ccacheBin = Get-ChildItem -Path $ccacheDir -Recurse -Filter "ccache.exe" | Select-Object -First 1
$ccachePath = $ccacheBin.DirectoryName
echo "$ccachePath" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- if: ${{ matrix.platform == 'win32' }}
name: Configure ccache on Windows
shell: bash
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z
echo "CMAKE_C_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV
echo "CMAKE_CXX_COMPILER_LAUNCHER=ccache" >> $GITHUB_ENV

- if: ${{ matrix.platform == 'win32' }}
name: Get ccache cache (Windows)
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}-${{ hashFiles('packages/qvac-lib-infer-onnx-tts/vcpkg.json') }}
path: ~\AppData\Local\ccache
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}-

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
Expand Down Expand Up @@ -421,9 +368,6 @@ jobs:
shell: bash
run: find ${{ env.WORKDIR }}/prebuilds -name "*.bare" -exec strip {} \;

- name: Show ccache stats
run: ccache -s

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # 7.0.0
with:
name: onnx-tts-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}
Expand Down
78 changes: 1 addition & 77 deletions .github/workflows/prebuilds-qvac-lib-infer-onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,71 +143,12 @@ jobs:
chmod +x llvm.sh
sudo ./llvm.sh 19 all

- if: ${{ matrix.variant == 'ubuntu' }}
name: Install ccache on Linux
run: sudo apt-get install -y ccache

- if: ${{ startsWith(matrix.os, 'macos') }}
name: Install ccache on macOS
run: brew install ccache

- if: ${{ matrix.os != 'windows-2022' }}
name: Configure ccache
run: |
ccache --set-config=max_size=2G
ccache --set-config=compression=true
ccache -z

- if: ${{ matrix.os != 'windows-2022' }}
name: Restore ccache cache
id: cache-ccache
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~/.cache/ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-${{ github.sha }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-
ccache-${{ matrix.platform }}-${{ matrix.arch }}-

- if: ${{ matrix.os == 'windows-2022' }}
name: Configure windows runner
run: |
git config --system core.longpaths true
choco upgrade llvm -y --no-progress

- if: ${{ matrix.os == 'windows-2022' }}
name: Install and configure ccache on Windows
shell: pwsh
run: |
# Download ccache directly from GitHub releases
$ccacheVersion = "4.10.2"
$ccacheUrl = "https://github.com/ccache/ccache/releases/download/v$ccacheVersion/ccache-$ccacheVersion-windows-x86_64.zip"
$ccacheZip = "$env:TEMP\ccache.zip"
$ccacheDir = "C:\ccache"

Invoke-WebRequest -Uri $ccacheUrl -OutFile $ccacheZip
Expand-Archive -Path $ccacheZip -DestinationPath $env:TEMP -Force
New-Item -ItemType Directory -Path $ccacheDir -Force | Out-Null
Move-Item -Path "$env:TEMP\ccache-$ccacheVersion-windows-x86_64\*" -Destination $ccacheDir -Force

# Add to PATH for subsequent steps
echo "C:\ccache" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

# Configure ccache
& "C:\ccache\ccache.exe" --set-config=max_size=2G
& "C:\ccache\ccache.exe" --set-config=compression=true
& "C:\ccache\ccache.exe" -z

- if: ${{ matrix.os == 'windows-2022' }}
name: Restore ccache cache (Windows)
id: cache-ccache-win
uses: actions/cache/restore@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~\AppData\Local\ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.sha }}
restore-keys: |
ccache-${{ matrix.platform }}-${{ matrix.arch }}-

- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2
with:
Expand Down Expand Up @@ -315,7 +256,7 @@ jobs:

- name: Generate
working-directory: ${{ env.PKG_DIR }}
run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }} -D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }}

- name: Run bare-make build
working-directory: ${{ env.PKG_DIR }}
Expand All @@ -336,23 +277,6 @@ jobs:
find prebuilds -name "*.bare" -exec strip {} \;
fi

- name: Show ccache stats
run: ccache -s

- if: ${{ matrix.os != 'windows-2022' && steps.cache-ccache.outputs.cache-hit != 'true' }}
name: Save ccache cache
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~/.cache/ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}-${{ github.sha }}

- if: ${{ matrix.os == 'windows-2022' && steps.cache-ccache-win.outputs.cache-hit != 'true' }}
name: Save ccache cache (Windows)
uses: actions/cache/save@668228422ae6a00e4ad889ee87cd7109ec5666a7 # 5.0.4
with:
path: ~\AppData\Local\ccache
key: ccache-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.sha }}

- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # 7.0.0
with:
name: onnx-${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}
Expand Down
Loading
Loading