[MacOS] Add timeout to connect #720
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Build Examples | |
on: [push, pull_request] | |
jobs: | |
# ------------------------------------------------------------ | |
build-windows: | |
runs-on: windows-2022 | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
- name: Add msbuild to PATH | |
uses: microsoft/[email protected] | |
- name: Compile Examples | |
run: | | |
cmake -B %GITHUB_WORKSPACE%\build -G "Visual Studio 17 2022" -DCMAKE_SYSTEM_VERSION=10.0.22000.0 -S %GITHUB_WORKSPACE%/examples/simpleble | |
cmake --build %GITHUB_WORKSPACE%\build --config Release --parallel 4 | |
shell: cmd | |
# ------------------------------------------------------------ | |
build-macos: | |
runs-on: macos-12 | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
- name: Setup Cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.21' | |
- name: Compile Examples | |
run: | | |
cmake -B $GITHUB_WORKSPACE/build -DCMAKE_BUILD_TYPE=Release -S $GITHUB_WORKSPACE/examples/simpleble | |
cmake --build $GITHUB_WORKSPACE/build --config Release --parallel 4 | |
# ------------------------------------------------------------ | |
build-linux: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v3 | |
- name: Install Dependencies | |
run: | | |
sudo -H apt-get update -y | |
sudo -H apt-get install -y libdbus-1-dev | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: Setup Cmake | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '3.21' | |
- name: Compile SimpleBLE Examples for Ubuntu | |
run: | | |
cmake -B $GITHUB_WORKSPACE/build_simpleble_examples -DCMAKE_BUILD_TYPE=Release -S $GITHUB_WORKSPACE/examples/simpleble | |
cmake --build $GITHUB_WORKSPACE/build_simpleble_examples --config Release --parallel 4 | |
- name: Compile SimpleBluez Examples for Ubuntu | |
run: | | |
cmake -B $GITHUB_WORKSPACE/build_simplebluez_examples -DCMAKE_BUILD_TYPE=Release -S $GITHUB_WORKSPACE/examples/simplebluez | |
cmake --build $GITHUB_WORKSPACE/build_simplebluez_examples --config Release --parallel 4 | |
- name: Compile SimpleDBus Examples for Ubuntu | |
run: | | |
cmake -B $GITHUB_WORKSPACE/build_simpledbus_examples -DCMAKE_BUILD_TYPE=Release -S $GITHUB_WORKSPACE/examples/simpledbus | |
cmake --build $GITHUB_WORKSPACE/build_simpledbus_examples --config Release --parallel 4 |