Skip to content

Merge pull request #281 from nanasess/dependabot/npm_and_yarn/dot-ema… #552

Merge pull request #281 from nanasess/dependabot/npm_and_yarn/dot-ema…

Merge pull request #281 from nanasess/dependabot/npm_and_yarn/dot-ema… #552

Workflow file for this run

name: CI
on:
push:
branches:
- '*'
tags:
- '*'
paths:
- '**'
- '!*.md'
pull_request:
paths:
- '**'
- '!*.md'
jobs:
run-on-mac:
name: Run on Mac
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout Emacs
uses: actions/checkout@v4
with:
repository: nanasess/emacs-package
ref: for-carbon-emacs
path: ./emacs-package
submodules: true
- name: prepare
run: |
git config --global user.name "Kentaro Ohkouchi"
git config --global user.email [email protected]
brew install texinfo pkg-config
cd ./emacs-package/emacs && ./autogen.sh
- name: build emacs
working-directory: ./emacs-package
run: |
sudo mkdir -p /usr/local/libexec
sudo chown -R runner /usr/local/libexec
export PATH="/usr/local/opt/texinfo/bin:$PATH"
export PATH="/usr/local/opt/gnutls/bin:$PATH"
make install
- run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs --version
- name: bootstrap
run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs -q -l .emacs.d/init.el --batch
- name: byte-compile
run: emacs-package/emacs/mac/Emacs.app/Contents/MacOS/Emacs -q -l .emacs.d/init.el --batch -f batch-byte-compile .emacs.d/init.el
run-on-ubuntu:
name: Run on Ubuntu
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: build emacs
run: |
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-fast update
sudo apt-fast install -y texinfo emacs28
- run: emacs --version
- name: bootstrap
run: |
emacs -q -l .emacs.d/init.el --batch
- name: byte-compile
run: |
emacs -q -l .emacs.d/init.el --batch -f batch-byte-compile .emacs.d/init.el