diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7cc556e..8875e54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,31 @@ permissions: contents: read jobs: + build-test: + name: Build & Test + runs-on: macos-15 + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + + - name: Select Xcode + run: | + if [ ! -d /Applications/Xcode_16.4.app ]; then + echo "Xcode 16.4 not found. Installed Xcode versions:" + ls /Applications | grep Xcode || true + exit 1 + fi + sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer + + - name: Verify Swift version + run: swift --version + + - name: Build + run: swift build + + - name: Test + run: swift test + docc: name: DocC catalog runs-on: macos-15 diff --git a/README.md b/README.md index c5c796c..8865794 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # ReliaBLE +[![CI](https://github.com/Five3Apps/ReliaBLE/actions/workflows/ci.yml/badge.svg)](https://github.com/Five3Apps/ReliaBLE/actions/workflows/ci.yml) + Modern library for handling BLE connections, with a focus on reliability. ## Installation