-
Notifications
You must be signed in to change notification settings - Fork 29
49 lines (42 loc) · 1.2 KB
/
emacs-26.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Emacs 26
on:
push:
branches:
- master
- dev
paths:
- 'Formula/emacs-head@26.rb'
- 'patches/**'
- 'Library/**'
- '.github/workflows/emacs-26.yml'
pull_request:
paths:
- 'Formula/emacs-head@26.rb'
- 'patches/**'
- 'Library/**'
- '.github/workflows/emacs-26.yml'
schedule:
- cron: '0 7 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13]
build_opts:
# All options (imagemagick@6)
- '--with-cocoa --with-no-frame-refocus --with-imagemagick --with-multicolor-fonts --with-retro-icon-sink-bw'
env:
HOMEBREW_EMACS_HEAD_GITHUB_REPOSITORY: ${{ github.repository }}
HOMEBREW_EMACS_HEAD_GITHUB_REPOSITORY_REF: ${{ github.head_ref || github.ref }}
steps:
- uses: actions/checkout@v4
- name: Build emacs-head@26 ${{ matrix.build_opts }}
run: |
brew update
brew upgrade || true
brew install --verbose emacs-head@26.rb ${{ matrix.build_opts }}
working-directory: Formula
- name: Test installation
run: $(brew --prefix)/bin/emacs --batch --eval='(print (+ 2 2))'
working-directory: Formula