Simplify Emacs CI workflow
- Remove container usage for simpler setup. - Use actions/checkout@v3 for code checkout. - Install Emacs and Git directly in the workflow. - Reduce unnecessary steps and improve workflow clarity. - Ensure Emacs and Git are installed for all jobs.
This commit is contained in:
parent
7f2fd2e699
commit
8ee4b3b2af
@ -9,23 +9,19 @@ jobs:
|
|||||||
compile:
|
compile:
|
||||||
name: Compile Emacs Package
|
name: Compile Emacs Package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: silex/emacs:29.1
|
|
||||||
env:
|
env:
|
||||||
TERM: dumb
|
TERM: dumb
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
steps:
|
|
||||||
- name: Checkout manually
|
|
||||||
run: |
|
|
||||||
apt-get update -qq && apt-get install -y -qq git
|
|
||||||
git --version
|
|
||||||
git clone https://git.rogs.me/rogs/forge-llm.git .
|
|
||||||
|
|
||||||
- name: Install Git
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Emacs and Git
|
||||||
run: |
|
run: |
|
||||||
echo "🔧 Installing Git..."
|
sudo apt-get update
|
||||||
apt-get update -qq && apt-get install -y -qq git
|
sudo apt-get install -y emacs git
|
||||||
git --version
|
|
||||||
|
|
||||||
- name: Setup Emacs environment
|
- name: Setup Emacs environment
|
||||||
run: mkdir -p .emacs.d/elpa
|
run: mkdir -p .emacs.d/elpa
|
||||||
@ -73,12 +69,16 @@ jobs:
|
|||||||
lint:
|
lint:
|
||||||
name: Lint Emacs Package
|
name: Lint Emacs Package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: silex/emacs:29.1
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Emacs
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y emacs
|
||||||
|
|
||||||
- name: Install package-lint and dependencies
|
- name: Install package-lint and dependencies
|
||||||
run: |
|
run: |
|
||||||
emacs --batch -Q \
|
emacs --batch -Q \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user