Skip to content

Commit b299503

Browse files
committed
chore: add osx build tests
Signed-off-by: Gordon Smith <GordonJSmith@gmail.com>
1 parent 4f1d010 commit b299503

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/test-pr.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-24.04
1211
strategy:
1312
fail-fast: false
1413
matrix:
14+
os: [ubuntu-24.04, macos-13, macos-14]
1515
node: [18, 20, 22]
1616

17-
name: Node ${{ matrix.node }} sample
17+
runs-on: ubuntu-24.04
18+
name: Node ${{ matrix.os }}, node-${{ matrix.node }} sample
1819
steps:
1920
- name: Checkout Sources
2021
uses: actions/checkout@v4
@@ -26,14 +27,20 @@ jobs:
2627
registry-url: "https://registry.npmjs.org"
2728
scope: "@hpcc-js"
2829

29-
- name: Install OS Dependencies
30+
- name: Install Ubuntu Dependencies
31+
if: ${{ contains(matrix.os, 'ubuntu') }}
3032
run: |
3133
sudo apt-get update
3234
sudo apt-get install -y build-essential
3335
sudo apt-get install -y git cmake ninja-build wget zip
3436
sudo apt-get install -y gcc-multilib g++-multilib pkg-config autoconf bison libtool flex
3537
sudo apt-get install -y python3 python3-pip
3638
39+
- name: Install OSX Dependencies
40+
if: ${{ contains(matrix.os, 'macos') }}
41+
run: |
42+
brew install ninja pkg-config automake libtool autoconf autoconf-archive coreutils
43+
3744
- name: Export GitHub Actions cache environment variables
3845
uses: actions/github-script@v7
3946
with:
@@ -60,7 +67,7 @@ jobs:
6067
npm run test
6168
6269
- name: Calculate Coverage
63-
if: ${{ matrix.node == 20 }}
70+
if: ${{ matrix.os == 'ubuntu-24.04' && matrix.node == 20 }}
6471
run: |
6572
npm run coverage
6673

0 commit comments

Comments
 (0)