-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (44 loc) · 1.4 KB
/
ed.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
name: Build/Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
defaults:
run:
shell: bash
strategy:
matrix:
OS: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install autopoint, gettext, and cal for Linux (omit texinfo).
if: runner.os == 'Linux'
run: |
sudo apt install autopoint gettext ncal
sudo apt remove texinfo
- name: Install autotools, gettext, and libssl for macOS (omit texinfo).
if: runner.os == 'macOS'
run: |
brew install m4 autoconf automake libtool gettext openssl
brew list texinfo && brew uninstall texinfo || true
brew unlink [email protected] && brew link --force --overwrite openssl@3
- name: Configure ed for Linux.
if: runner.os == 'Linux'
run: |
./autogen.sh
./configure --enable-all-extensions --with-included-regex
- name: Configure ed for macOS.
if: runner.os == 'macOS'
run: |
./autogen.sh
./configure --enable-all-extensions --with-included-regex LDFLAGS=-L/opt/homebrew/Cellar/openssl@3/3.3.0/lib
- name: Build ed.
run: |
make
- name: Build and run ed testsuite.
run: |
make check # || find testsuite/testsuite.dir -name '*.log' -exec cat {} \+