Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

ci: close the remaining self-hosted CUDA image gaps

Akarshan Biswasf51815b20339
diff --git a/.github/workflows/engine-build.yml b/.github/workflows/engine-build.yml
index 4acf6df45..4ca6aa31e 100644
--- a/.github/workflows/engine-build.yml
+++ b/.github/workflows/engine-build.yml
@@ -86,7 +86,8 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# The self-hosted CUDA images have Git for Windows off PATH (or absent) and
- # no make, and every later step (dtolnay's included) is bash.
+ # no make; every later step (dtolnay's included) is bash, and make runs
+ # recipes like `mkdir -p` through the coreutils in Git's usr\bin.
- name: Provision Git Bash and make on Windows
if: runner.os == 'Windows'
shell: pwsh
@@ -96,6 +97,7 @@ jobs:
}
Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\cmd'
Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\bin'
+ Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\usr\bin'
if (-not (Get-Command make -ErrorAction SilentlyContinue)) {
choco install make -y --no-progress
Add-Content $env:GITHUB_PATH 'C:\ProgramData\chocolatey\bin'
diff --git a/.github/workflows/template-tauri-build-linux-x64.yml b/.github/workflows/template-tauri-build-linux-x64.yml
index b5aa30a82..4ccc9d8bc 100644
--- a/.github/workflows/template-tauri-build-linux-x64.yml
+++ b/.github/workflows/template-tauri-build-linux-x64.yml
@@ -121,7 +121,7 @@ jobs:
- name: Install Tauri dependencies
run: |
sudo apt update
- sudo apt install -y libglib2.0-dev libatk1.0-dev libpango1.0-dev libgtk-3-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev librsvg2-dev libfuse2 libappindicator3-dev
+ sudo apt install -y libglib2.0-dev libatk1.0-dev libpango1.0-dev libgtk-3-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev librsvg2-dev libfuse2 libappindicator3-dev xdg-utils
# `make build` compiles jan-llama-worker, which the deb and the AppImage
# both bundle. The default variant is vulkan because it covers AMD, Intel
diff --git a/.github/workflows/template-tauri-build-windows-x64.yml b/.github/workflows/template-tauri-build-windows-x64.yml
index 2afa4041a..f8c329e54 100644
--- a/.github/workflows/template-tauri-build-windows-x64.yml
+++ b/.github/workflows/template-tauri-build-windows-x64.yml
@@ -98,8 +98,9 @@ jobs:
ref: ${{ inputs.ref }}
# The self-hosted CUDA images have Git for Windows off PATH (or absent) and
- # no make, and every later step (dtolnay's included) is bash.
- - name: Provision Git Bash and make on Windows
+ # no make; every later step (dtolnay's included) is bash, and make runs
+ # recipes like `mkdir -p` through the coreutils in Git's usr\bin.
+ - name: Provision Git Bash, make and dotnet on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
@@ -108,10 +109,16 @@ jobs:
}
Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\cmd'
Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\bin'
+ Add-Content $env:GITHUB_PATH 'C:\Program Files\Git\usr\bin'
if (-not (Get-Command make -ErrorAction SilentlyContinue)) {
choco install make -y --no-progress
Add-Content $env:GITHUB_PATH 'C:\ProgramData\chocolatey\bin'
}
+ if (-not (Get-Command dotnet -ErrorAction SilentlyContinue)) {
+ choco install dotnet-8.0-sdk -y --no-progress
+ Add-Content $env:GITHUB_PATH 'C:\Program Files\dotnet'
+ Add-Content $env:GITHUB_PATH "$env:USERPROFILE\.dotnet\tools"
+ }
- name: Replace Icons for Beta Build
if: inputs.channel != 'stable'