Skip to content

Commit 1871953

Browse files
committed
Compile libsocket for Linux, macOS and Windows in github action ci.
1 parent 1f28e5e commit 1871953

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Compile libsocket binaries
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Build binaries on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest, windows-latest]
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Configure libsocket for ${{ matrix.os }}
24+
run: |
25+
mkdir build && cd build
26+
cmake ..
27+
28+
- name: Build libsocket for ${{ matrix.os }}
29+
run: |
30+
cd build
31+
cmake --build . --target ALL_BUILD --config Release
32+
33+
- name: Run tests libsocket for ${{ matrix.os }}
34+
run: |
35+
cd build
36+
cmake --build . --target RUN_TESTS --config Release

0 commit comments

Comments
 (0)