-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (43 loc) · 1.74 KB
/
macos.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
name: macOS
on: [push, pull_request]
jobs:
install:
runs-on: macos-latest
if: github.ref == 'refs/heads/master'
strategy:
matrix:
compiler: [clang, gcc]
steps:
- name: Patch
run: |
brew tap homebrew/core
cd "$(brew --repo homebrew/core)" && patch -p1 <<\EOF
diff --git a/Formula/t/tig.rb b/Formula/t/tig.rb
index c726e53c519..920b0fbc1c2 100644
--- a/Formula/t/tig.rb
+++ b/Formula/t/tig.rb
@@ -31,9 +31,11 @@ class Tig < Formula
depends_on "readline"
def install
+ ENV.deparallelize
system "./autogen.sh" if build.head?
system "./configure", "--prefix=#{prefix}", "--sysconfdir=#{etc}"
system "make"
+ system "make", "test"
# Ensure the configured `sysconfdir` is used during runtime by
# installing in a separate step.
system "make", "install", "sysconfdir=#{pkgshare}/examples"
EOF
- name: Install latest Tig
shell: 'script -q typescript sh {0}' # Workaround to get a TTY, see https://github.com/gfx/example-github-actions-with-tty
run: HOMEBREW_NO_INSTALL_FROM_API=1 HOMEBREW_CC=${{ matrix.compiler }} HOMEBREW_NO_AUTO_UPDATE=1 brew install --HEAD tig
ci:
runs-on: macos-latest
if: github.ref != 'refs/heads/master'
steps:
- uses: actions/checkout@v4
- name: Test Tig
shell: 'script -q typescript sh {0}' # Workaround to get a TTY, see https://github.com/gfx/example-github-actions-with-tty
run: |
brew install asciidoc autoconf automake coreutils gnu-sed ncurses xmlto
TIG_BUILD=autoconf tools/travis.sh