Skip to content

Commit a0e8d73

Browse files
authored
Run GitHub Actions workflow on Linux and macOS (#26)
1 parent 8314f4f commit a0e8d73

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/CI.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,37 @@ on:
33
push:
44

55
jobs:
6-
linux:
7-
name: "Linux"
8-
runs-on: ubuntu-latest
6+
tests:
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, macos-latest]
10+
11+
runs-on: ${{ matrix.os }}
12+
name: "Run Tests on ${{ matrix.os }}"
913
steps:
1014
- name: Checkout
1115
uses: actions/checkout@v4
1216

13-
- name: Setup Packages
17+
- name: Install dependencies for Linux
18+
if: runner.os == 'Linux'
1419
shell: bash
1520
run: |+
1621
sudo apt -y update
1722
sudo apt -y install autoconf automake texinfo
1823
24+
- name: Install dependencies for macOS
25+
if: runner.os == 'macOS'
26+
shell: bash
27+
run: |+
28+
brew update
29+
brew install bash
30+
brew install autoconf automake texinfo
31+
# Not installing pygments, because apparently 'osascript' executed during bashdb's init is blocking
32+
# if there's not user logged in.
33+
1934
- name: Configure
2035
shell: bash
21-
run: sh ./autogen.sh
36+
run: bash ./autogen.sh
2237

2338
- name: Test
2439
shell: bash

0 commit comments

Comments
 (0)