Build Khoj Debian package on Ubuntu 20.04 to work with Glibc 2.31 (#424)

Build the Debian package using Ubuntu 20.04 instead of 22.04 as Ubuntu 20.04 comes pre-installed with glibc_2.31 unlike Ubuntu 22.04 which uses glibc_2.35
This commit is contained in:
Debanjum 2023-08-06 23:21:51 -07:00 committed by GitHub
commit cc951450fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-20.04
extension: deb extension: deb
- os: macos-latest - os: macos-latest
extension: dmg extension: dmg
@ -82,12 +82,12 @@ jobs:
"dist/dmg/" "dist/dmg/"
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-20.04'
with: with:
ruby-version: '3.0' ruby-version: '3.0'
- name: 🐧 Create Debian Package - name: 🐧 Create Debian Package
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-20.04'
shell: bash shell: bash
run: | run: |
# Install Debian Packager # Install Debian Packager

View file

@ -21,7 +21,7 @@ on:
jobs: jobs:
publish: publish:
name: Publish Python Package to PyPI name: Publish Python Package to PyPI
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:

View file

@ -70,7 +70,7 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-20.04
extension: deb extension: deb
- os: macos-latest - os: macos-latest
extension: dmg extension: dmg
@ -133,11 +133,11 @@ jobs:
"dist/dmg/" "dist/dmg/"
- uses: ruby/setup-ruby@v1 - uses: ruby/setup-ruby@v1
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-20.04'
with: with:
ruby-version: '3.0' ruby-version: '3.0'
- name: 🐧 Create Debian Package - name: 🐧 Create Debian Package
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-20.04'
shell: bash shell: bash
env: env:
DEBIAN_PACKAGE_VERSION: ${{ inputs.version }} DEBIAN_PACKAGE_VERSION: ${{ inputs.version }}

View file

@ -37,7 +37,7 @@ classifiers = [
"Topic :: Text Processing :: Linguistic", "Topic :: Text Processing :: Linguistic",
] ]
dependencies = [ dependencies = [
"dateparser == 1.1.1", "dateparser >= 1.1.1",
"defusedxml == 0.7.1", "defusedxml == 0.7.1",
"fastapi == 0.77.1", "fastapi == 0.77.1",
"jinja2 == 3.1.2", "jinja2 == 3.1.2",