Skip to content

Commit 3dfcd88

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

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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+
fail-fast: false
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Configure libsocket for ${{ matrix.os }}
25+
run: |
26+
mkdir build && cd build
27+
cmake ..
28+
29+
- name: Build libsocket for ${{ matrix.os }}
30+
run: |
31+
cd build
32+
cmake --build . --target all --config Release
33+
34+
- name: Run tests libsocket for ${{ matrix.os }}
35+
run: |
36+
cd build
37+
cmake --build . --target RUN_TESTS --config Release

0 commit comments

Comments
 (0)