Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Installer for linux #780

Merged
merged 1 commit into from
Jun 26, 2024
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
28 changes: 28 additions & 0 deletions .github/workflows/cortex-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,16 @@ jobs:
cp cortex installer/cortex
pkgbuild --identifier ai.cortex.pkg --install-location ./usr/local/bin/ --root ./installer cortex-installer.pkg

- name: Create MacOS PKG Installer
if: runner.os == 'Linux'
run: |
cd cortex-js
mkdir -p cortexso/DEBIAN
mkdir -p cortexso/usr/local/bin
sed "s/Version:/Version: ${{ needs.create-draft-release.outputs.version }}/g" control.template > cortexso/DEBIAN/control
cp cortex cortexso/usr/local/bin/cortex
dpkg-deb --build cortexso

- name: Compile .ISS to .EXE Installer
uses: Minionguyjpro/Inno-Setup-Action@v1.2.2
if: runner.os == 'Windows'
Expand Down Expand Up @@ -463,6 +473,14 @@ jobs:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/setup.exe

- name: Upload Linux Installer
if: runner.os == 'Linux'
uses: actions/upload-artifact@v2
with:
name: cortex-installer-${{ matrix.os }}-${{ matrix.name }}
path: |
./cortex-js/cortexso.deb

- name: Upload MacOS Installer
if: runner.os == 'macOS'
Expand Down Expand Up @@ -492,6 +510,16 @@ jobs:
asset_name: cortex-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.tar.gz
asset_content_type: application/gzip

- uses: actions/upload-release-asset@v1.0.1
if: runner.os == 'Linux'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-draft-release.outputs.upload_url }}
asset_path: ./cortex-js/cortexso.deb
asset_name: cortex-installer-${{ needs.create-draft-release.outputs.version }}-${{ matrix.name }}-${{ matrix.os }}.deb
asset_content_type: application/gzip

update_release_draft:
needs: [build-and-test, build-cortex-single-binary]
permissions:
Expand Down
9 changes: 9 additions & 0 deletions cortex-js/control.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: cortexso
Version:
Section: base
Priority: optional
Architecture: amd64
Depends: openmpi-bin,libopenmpi-dev
Maintainer: Homebrew Pte Ltd <service@jan.ai>
Description: Cortex
Cortex is an OpenAI-compatible AI engine that developers can use to build LLM apps. It is packaged with a Docker-inspired command-line interface and client libraries. It can be used as a standalone server or imported as a library.
Loading