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(cli): embed update channel/version in nightly builds, run Tue/Thu (#8538)

Akarshan Biswas4c7e190d04ce
diff --git a/.github/workflows/jan-tauri-build-agent-nightly.yaml b/.github/workflows/jan-tauri-build-agent-nightly.yaml
index 5adf9ed7b..cf6e63b1b 100644
--- a/.github/workflows/jan-tauri-build-agent-nightly.yaml
+++ b/.github/workflows/jan-tauri-build-agent-nightly.yaml
@@ -2,7 +2,7 @@ name: Jan Agent CLI - Nightly Build
on:
schedule:
- - cron: '0 10 * * *' # 10 AM UTC daily
+ - cron: '0 10 * * 2,4' # 10 AM UTC Tuesday and Thursday
workflow_dispatch:
concurrency:
diff --git a/.github/workflows/template-cli-build-linux-x64.yml b/.github/workflows/template-cli-build-linux-x64.yml
index 1ae4a84a4..5b3e23e29 100644
--- a/.github/workflows/template-cli-build-linux-x64.yml
+++ b/.github/workflows/template-cli-build-linux-x64.yml
@@ -49,6 +49,9 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Build CLI binary
+ env:
+ JAN_CLI_UPDATE_CHANNEL: ${{ inputs.channel }}
+ JAN_CLI_BUILD_VERSION: ${{ inputs.new_version }}
run: |
cd src-tauri
cargo build --features cli --bin jan --release
diff --git a/.github/workflows/template-cli-build-macos.yml b/.github/workflows/template-cli-build-macos.yml
index af6d6fccc..1aea354eb 100644
--- a/.github/workflows/template-cli-build-macos.yml
+++ b/.github/workflows/template-cli-build-macos.yml
@@ -61,11 +61,17 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Build CLI binary (x86_64)
+ env:
+ JAN_CLI_UPDATE_CHANNEL: ${{ inputs.channel }}
+ JAN_CLI_BUILD_VERSION: ${{ inputs.new_version }}
run: |
cd src-tauri
cargo build --features cli --bin jan --release --target x86_64-apple-darwin
- name: Build CLI binary (aarch64)
+ env:
+ JAN_CLI_UPDATE_CHANNEL: ${{ inputs.channel }}
+ JAN_CLI_BUILD_VERSION: ${{ inputs.new_version }}
run: |
cd src-tauri
cargo build --features cli --bin jan --release --target aarch64-apple-darwin
diff --git a/.github/workflows/template-cli-build-windows-x64.yml b/.github/workflows/template-cli-build-windows-x64.yml
index bd4266c69..0fb62d235 100644
--- a/.github/workflows/template-cli-build-windows-x64.yml
+++ b/.github/workflows/template-cli-build-windows-x64.yml
@@ -49,6 +49,9 @@ jobs:
uses: Swatinem/rust-cache@v2
- name: Build CLI binary
+ env:
+ JAN_CLI_UPDATE_CHANNEL: ${{ inputs.channel }}
+ JAN_CLI_BUILD_VERSION: ${{ inputs.new_version }}
run: |
cd src-tauri
cargo build --features cli --bin jan --release