Simplify Emacs CI workflow
All checks were successful
Emacs Package CI / Compile Emacs Package (push) Successful in 1m29s
Emacs Package CI / Lint Emacs Package (push) Successful in 1m5s

- 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:
Roger Gonzalez 2025-05-15 20:10:24 -03:00
parent 7f2fd2e699
commit 8ee4b3b2af
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -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 \