-
-
Notifications
You must be signed in to change notification settings - Fork 182
61 lines (51 loc) · 1.5 KB
/
online.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
50
51
52
53
54
55
56
57
58
59
60
61
name: Online Build
on:
push:
branches:
- master
paths:
- "Formula/**"
- "patches/**"
- "Library/**"
- ".github/workflows/online.yml"
pull_request:
paths:
- ".github/workflows/online.yml"
schedule:
- cron: "0 0 * * *"
jobs:
tap-and-install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- name: Tap emacs-plus
run: brew tap d12frosted/emacs-plus
- name: Build emacs-plus
run: brew install emacs-plus
- name: Test installation
run: $(brew --prefix)/bin/emacs --batch --eval='(print (+ 2 2))'
install:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12]
steps:
- name: Build emacs-plus
run: brew install d12frosted/homebrew-emacs-plus/emacs-plus --verbose
- name: Test installation
run: $(brew --prefix)/bin/emacs --batch --eval='(print (+ 2 2))'
- name: Pack up build logs
if: ${{ always() }}
run: |
RUNNER_OS=$(echo "${{ matrix.os }}" | sed 's/ //')
echo "runner_os=$RUNNER_OS" >> "$GITHUB_ENV"
tar -C ~/Library/Logs/Homebrew/emacs-plus@29/ -czvf ~/Library/Logs/Homebrew/emacs-plus-$RUNNER_OS.tar.gz .
- name: Upload logs
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: emacs-plus-${{ env.runner_os }}.tar.gz
path: |
~/Library/Logs/Homebrew/emacs-plus-${{ env.runner_os }}.tar.gz