From 2df455f928b8b55de13cedc083ea0c2d863ea580 Mon Sep 17 00:00:00 2001 From: Lukas Woodtli Date: Wed, 8 May 2024 21:18:00 +0200 Subject: [PATCH] ci: Add build and test on macOS 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. --- .github/workflows/macos.yaml | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/macos.yaml diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml new file mode 100644 index 00000000..7a45adc9 --- /dev/null +++ b/.github/workflows/macos.yaml @@ -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