Skip to content

Commit

Permalink
improve ci: use only opencl on windows and remove openblas
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Aug 1, 2024
1 parent 2fa0924 commit 74e28f0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 22 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- platform: "ubuntu-24.04" # Ubuntu x86_64
args: ""
- platform: "windows-latest" # Windows x86_64
args: '--target x86_64-pc-windows-msvc --features "openblas,opencl"'
pre-build-args: "--openblas --opencl"
args: '--target x86_64-pc-windows-msvc --features "opencl"'
pre-build-args: "--opencl"

runs-on: ${{ matrix.platform }}
steps:
Expand Down
28 changes: 8 additions & 20 deletions .github/workflows/windows_special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,31 @@ jobs:
include:
# Windows no AVX2
- platform: "windows-latest"
args: '--features="openblas,opencl"'
pre-build-args: "--older-cpu --openblas --opencl"
args: '--features="opencl"'
pre-build-args: "--older-cpu --opencl"
name: "older-cpu"
rust-version: "stable"

# Windows cuda 12.5.0
- platform: "windows-latest"
args: '--features="cuda,openblas"'
pre-build-args: "--cuda --openblas"
args: '--features="cuda"'
pre-build-args: "--cuda"
name: 'nvidia-12.5.0'
cuda-verison: '12.5.0'
rust-version: "stable"

# Windows cuda 11.8.0
- platform: "windows-latest"
args: '--features="cuda,openblas"'
pre-build-args: "--cuda --openblas"
args: '--features="cuda"'
pre-build-args: "--cuda"
name: 'nvidia-11.8.0'
cuda-verison: '11.8.0'
rust-version: "stable"

# Windows portable
- platform: "windows-latest" # Windows x86_64
args: '--features="openblas,opencl"'
pre-build-args: "--portable --openblas --opencl"
args: '--features="opencl"'
pre-build-args: "--portable --opencl"
name: portable
rust-version: "stable"

Expand Down Expand Up @@ -76,22 +76,10 @@ jobs:
run: bun install
working-directory: ./desktop


- name: Cache Pre Build
id: cache-pre-build
uses: actions/cache@v4
with:
path: |
desktop/src-tauri/openblas
desktop/src-tauri/clblast
desktop/src-tauri/ffmpeg
key: ${{ runner.os }}-pre-build

# Run pre build
- name: Run pre_build.js
run: bun scripts/pre_build.js ${{ matrix.pre-build-args }}


- name: Build
uses: tauri-apps/tauri-action@v0
env:
Expand Down

0 comments on commit 74e28f0

Please sign in to comment.