Skip to content

Commit

Permalink
Compile libsocket for Linux in github action ci.
Browse files Browse the repository at this point in the history
  • Loading branch information
talregev committed Sep 3, 2021
1 parent 1f28e5e commit 4b1a2f1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: libsocket

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure libsocket for ${{ matrix.os }}
run: |
mkdir build && cd build
cmake ..
- name: Build libsocket for Linux
if: success() && matrix.os == 'ubuntu-latest'
run: |
cd build
cmake --build . --target all --config Release

0 comments on commit 4b1a2f1

Please sign in to comment.