From a870da32fd1ba8d3233002b1cd981059831ab834 Mon Sep 17 00:00:00 2001 From: Paul Beusterien Date: Fri, 7 Mar 2025 15:46:50 -0800 Subject: [PATCH] add ci --- .github/workflows/vertexai.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/vertexai.yml diff --git a/.github/workflows/vertexai.yml b/.github/workflows/vertexai.yml new file mode 100644 index 000000000..e576ee5b1 --- /dev/null +++ b/.github/workflows/vertexai.yml @@ -0,0 +1,47 @@ +name: vertexai + +on: + pull_request: + paths: + - 'vertexai/**' + schedule: + # Run every day at 11pm (PST) - cron uses UTC times + - cron: '0 7 * * *' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + spm: + name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }}) + runs-on: macOS-15 + strategy: + matrix: + xcode: ["16.1"] + os: [iOS, tvOS, macOS] + include: + - os: iOS + device: iPhone 16 + - os: tvOS + device: Apple TV 4K (3rd generation) (at 1080p) + - os: macOS + device: localhost + env: + SETUP: vertexai + SPM: true + DIR: vertexai + OS: ${{ matrix.os }} + DEVICE: ${{ matrix.device }} + TEST: false + XCODE_VERSION: ${{ matrix.xcode }} + DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer + steps: + - name: Checkout + uses: actions/checkout@master + - name: Setup + run: | + gem install xcpretty + - name: Build and Test SwiftUI (${{ matrix.os }}) + run: ./scripts/test.sh