Skip to content

Commit 8a115b2

Browse files
committed
Add macOS support to CI workflow and README
1 parent dcb6b9d commit 8a115b2

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,26 @@ on:
88

99
jobs:
1010
gtest:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os: [ubuntu-latest, macos-latest]
1215

1316
steps:
1417
- uses: actions/checkout@v4
1518
with:
1619
submodules: recursive
1720

18-
- name: Install dependencies
21+
- name: Install dependencies (Linux)
22+
if: runner.os == 'Linux'
1923
run: |
2024
sudo apt-get update
2125
sudo apt-get install -y libgtest-dev
2226
27+
- name: Install dependencies (macOS)
28+
if: runner.os == 'macOS'
29+
run: brew install googletest
30+
2331
- name: Build tests
2432
run: make gtests
2533

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<a href="https://github.com/gistrec/File-Broadcaster/releases">
99
<img src="https://img.shields.io/github/v/release/gistrec/File-Broadcaster" alt="Release"></a>
1010
<a>
11-
<img src="https://img.shields.io/badge/platform-windows%20%7C%20linux-brightgreen" alt="Platform"></a>
11+
<img src="https://img.shields.io/badge/platform-windows%20%7C%20linux%20%7C%20macos-brightgreen" alt="Platform"></a>
1212
<a href="https://github.com/gistrec/File-Broadcaster/blob/master/LICENSE">
1313
<img src="https://img.shields.io/github/license/gistrec/File-Broadcaster?color=brightgreen" alt="License"></a>
1414
</p>
@@ -31,7 +31,7 @@ UDP broadcast file transfer — sends a file to all computers in the same LAN si
3131
- Unicast mode for point-to-point transfer
3232
- Automatic retransmission of lost packets
3333
- Configurable MTU and TTL
34-
- Windows and Linux support
34+
- Windows, Linux, and macOS support
3535

3636
## Quick Start
3737

@@ -55,13 +55,13 @@ To send to a specific IP instead of broadcasting to the whole LAN:
5555
**Windows:**
5656
- Visual Studio 2019 or later
5757

58-
**Linux:**
59-
- g++ with C++14 support
58+
**Linux / macOS:**
59+
- g++ or clang++ with C++14 support
6060
- pthreads
6161

6262
## Installation
6363

64-
**Linux:**
64+
**Linux / macOS:**
6565
```
6666
git clone https://github.com/gistrec/File-Broadcaster.git
6767
git submodule update --init --recursive

0 commit comments

Comments
 (0)