2023-01-19 22:50:59 +01:00
|
|
|
# melpa quality checks like checkdoc, byte-compile, package-lint for khoj.el
|
|
|
|
# using melpazoid: https://github.com/riscy/melpazoid
|
|
|
|
|
|
|
|
name: build khoj.el
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
paths:
|
|
|
|
- src/interface/emacs/*.el
|
|
|
|
- .github/workflows/build_khoj_el.yml
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'master'
|
|
|
|
paths:
|
|
|
|
- src/interface/emacs/*.el
|
|
|
|
- .github/workflows/build_khoj_el.yml
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2024-04-07 07:41:49 +02:00
|
|
|
- name: Set up Python 3.11
|
2023-01-19 22:50:59 +01:00
|
|
|
uses: actions/setup-python@v1
|
2024-04-07 07:41:49 +02:00
|
|
|
with: { python-version: 3.11 }
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: ⏬️ Install Dependencies
|
2023-01-19 22:50:59 +01:00
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
sudo apt-get install emacs && emacs --version
|
|
|
|
git clone https://github.com/riscy/melpazoid.git ~/melpazoid
|
|
|
|
pip install ~/melpazoid
|
2023-03-01 17:56:39 +01:00
|
|
|
- name: 🌡️ Validate Khoj.el
|
2023-01-19 22:50:59 +01:00
|
|
|
env:
|
|
|
|
# Khoj recipe from https://github.com/melpa/melpa/pull/8321/files
|
2023-06-21 09:13:21 +02:00
|
|
|
RECIPE: (khoj :fetcher github :repo "khoj-ai/khoj" :files ("src/interface/emacs/*.el"))
|
2023-01-19 22:50:59 +01:00
|
|
|
EXIST_OK: true
|
|
|
|
LOCAL_REPO: ${{ github.workspace }}
|
|
|
|
run: echo $GITHUB_REF && make -C ~/melpazoid
|