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): install libdbus-1-dev for linux CLI build (#8540)

Akarshan Biswasfbe20e28b507
diff --git a/.github/workflows/template-cli-build-linux-x64.yml b/.github/workflows/template-cli-build-linux-x64.yml
index 17d47d331..3fc58be9d 100644
--- a/.github/workflows/template-cli-build-linux-x64.yml
+++ b/.github/workflows/template-cli-build-linux-x64.yml
@@ -45,17 +45,14 @@ jobs:
with:
toolchain: stable
+ - name: Install system dependencies
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y libdbus-1-dev pkg-config
+
- name: Cache cargo
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 --no-default-features --features cli --bin jan --release
-
- name: Assert no GUI crates
run: |
cd src-tauri
@@ -69,6 +66,14 @@ jobs:
exit 1
fi
+ - name: Build CLI binary
+ env:
+ JAN_CLI_UPDATE_CHANNEL: ${{ inputs.channel }}
+ JAN_CLI_BUILD_VERSION: ${{ inputs.new_version }}
+ run: |
+ cd src-tauri
+ cargo build --no-default-features --features cli --bin jan --release
+
- name: Strip binary
run: strip src-tauri/target/release/jan