From 525b312e742de88c3a7054ace2e51535adc82d51 Mon Sep 17 00:00:00 2001 From: Patrick Balestra Date: Mon, 14 Jul 2025 20:49:05 -0400 Subject: [PATCH] Add GH actions configuration --- .github/workflows/ci.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..07f5579e --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + ci: + name: Build and test + runs-on: macos-15 + env: + XCODE_VERSION: ${{ '16.4' }} + steps: + - name: Select Xcode + run: "sudo xcode-select -s /Applications/Xcode_$XCODE_VERSION.app" + - name: Checkout + uses: actions/checkout@v4 + - name: Build project + run: swift build + - name: Run tests + run: swift test + - name: Build example iOS app + run: | + cd Example + bazel build //HelloWorld + # TODO: add test target to the example iOS app + # - name: Test example iOS app + # run: | + # cd Example + # bazel test //HelloWorld/HelloWorldTests/...