Skip to content

Commit 5a8ba57

Browse files
add macos build action
1 parent 1516b4c commit 5a8ba57

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/cmake.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,23 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
15+
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
1519

1620
steps:
1721
- uses: actions/checkout@v2
1822

19-
- name: Install apt libraries
23+
- name: Install libraries (Linux)
24+
if: ${{ matrix.os == 'ubuntu-latest' }}
2025
run: sudo apt-get install -y libopenal-dev libsamplerate-dev
2126

27+
- name: Install libraries (macOS)
28+
if: ${{ matrix.os == 'macos-latest' }}
29+
run: brew install libsamplerate
30+
2231
- name: Install phosg
2332
run: |
2433
git clone https://github.com/fuzziqersoftware/phosg.git

0 commit comments

Comments
 (0)