Skip to content

Commit

Permalink
ci: Add build and test on macOS
Browse files Browse the repository at this point in the history
Building and testing Wakaama on macOS with the default compiler and no
additional sanitizers. This makes sure that the code can be used with
macOS.
  • Loading branch information
LukasWoodtli committed May 8, 2024
1 parent c1a3e89 commit 2df455f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Test on macOS

on:
push:
branches: '**'
pull_request:
branches: '**'

jobs:
build_and_test:
runs-on: macos-14

steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Install dependencies from Homebrew
run: |
brew install automake cmake cunit gnu-getopt make ninja
- name: Build all binaries
run: |
tools/ci/run_ci.sh --run-build --verbose
- name: Build, execute sanitized unit tests
run: |
tools/ci/run_ci.sh --run-tests
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/integration/requirements.txt
- name: Execute integration tests
run: |
python -c "import sys; print(sys.version)"
pytest -v tests/integration

0 comments on commit 2df455f

Please sign in to comment.