diff --git a/.github/workflows/functions.yml b/.github/workflows/functions.yml index 7d696cabb..c8b463454 100644 --- a/.github/workflows/functions.yml +++ b/.github/workflows/functions.yml @@ -52,3 +52,37 @@ jobs: run: ./scripts/test.sh env: SWIFT_SUFFIX: Swift + + spm: + name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }}) + runs-on: macOS-12 + strategy: + matrix: + xcode: ["14.2"] + os: [iOS, tvOS, macOS] + include: + - os: iOS + device: iPhone 12 + - os: tvOS + device: Apple TV 4K (at 1080p) (2nd generation) + - os: macOS + device: localhost + env: + SETUP: functions + SPM: true + DIR: functions/FunctionsExample + 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 + cd $SETUP + ../scripts/install_prereqs/${SETUP}.sh + - name: Build and Test SwiftUI (${{ matrix.os }}) + run: ./scripts/test.sh diff --git a/.github/workflows/storage.yml b/.github/workflows/storage.yml index 7d51da227..1ed36da36 100644 --- a/.github/workflows/storage.yml +++ b/.github/workflows/storage.yml @@ -52,3 +52,37 @@ jobs: run: ./scripts/test.sh env: SWIFT_SUFFIX: Swift + + spm: + name: spm (Xcode ${{ matrix.xcode }} - ${{ matrix.os }}) + runs-on: macOS-12 + strategy: + matrix: + xcode: ["14.2"] + os: [iOS, tvOS, macOS] + include: + - os: iOS + device: iPhone 12 + - os: tvOS + device: Apple TV 4K (at 1080p) (2nd generation) + - os: macOS + device: localhost + env: + SETUP: storage + SPM: true + DIR: storage/StorageExample + 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 + cd $SETUP + ../scripts/install_prereqs/${SETUP}.sh + - name: Build and Test SwiftUI (${{ matrix.os }}) + run: ./scripts/test.sh