Skip to content

Commit

Permalink
Use Eask
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Mar 24, 2024
1 parent 4157ae3 commit f67d56a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 53 deletions.
67 changes: 14 additions & 53 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,64 +14,25 @@ on:
- '!*.md'

jobs:
run-on-mac:
name: Run on Mac
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macos-latest ]
os: [ubuntu-latest, macos-latest]
emacs-version:
- "28.2"
- "29.2"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout Emacs
uses: actions/checkout@v4
- uses: purcell/setup-emacs@master
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 nanasess@example.com
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
version: ${{ matrix.emacs-version }}
- uses: emacs-eask/setup-eask@master
with:
version: 'snapshot'
- run: emacs -Q -l .emacs.d/early-init.el -l .emacs.d/init.el --batch
- name: Eask
run: |
sudo add-apt-repository ppa:kelleyk/emacs
sudo apt-fast update
sudo apt-fast install -y texinfo emacs28
eask clean all
eask compile
- 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
14 changes: 14 additions & 0 deletions Eask
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(package "nanasess/dotfiles"
"0.0.1"
"")

(website-url "")
(keywords "")

(package-file ".emacs.d/init.el")

(script "test" "echo \"Error: no test specified\" && exit 1")

(source "gnu")

(depends-on "emacs" "28.2")

0 comments on commit f67d56a

Please sign in to comment.