From 8f495eb24177b8ef4c42e1dea360d856bb83a91a Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Tue, 20 Jan 2026 11:57:50 -0800 Subject: [PATCH] Add CI --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e13ba49 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - '*' + workflow_dispatch: + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + macos-26: + name: macOS + runs-on: macos-26 + strategy: + matrix: + xcode: + - '26.2' + steps: + - uses: actions/checkout@v5 + - name: Select Xcode ${{ matrix.xcode }} + run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app + - name: Build + run: swift build + + linux: + name: Linux + runs-on: ubuntu-latest + strategy: + matrix: + swift: + - '6.2.3' + steps: + - uses: actions/checkout@v5 + - name: Install Swift ${{ matrix.swift }} + uses: swift-actions/setup-swift@v3 + with: + swift-version: ${{ matrix.swift }} + - name: Build + run: swift build