Skip to content

Move to actions/checkout@v4 to avoid warnings. #175

Move to actions/checkout@v4 to avoid warnings.

Move to actions/checkout@v4 to avoid warnings. #175

Workflow file for this run

name: Examples
on:
push:
branches: [ main ]
paths:
- 'Examples/**'
- '!Examples/**/*.md'
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Calendar/**'
- 'Sources/GeneratedServices/Drive/**'
- 'Sources/GeneratedServices/Storage/**'
- 'Sources/GeneratedServices/YouTube/**'
- '*.podspec'
- '.github/workflows/examples.yml'
pull_request:
branches: [ main ]
paths:
- 'Examples/**'
- '!Examples/**/*.md'
- 'Sources/Core/**'
- 'Sources/GeneratedServices/Calendar/**'
- 'Sources/GeneratedServices/Drive/**'
- 'Sources/GeneratedServices/Storage/**'
- 'Sources/GeneratedServices/YouTube/**'
- '*.podspec'
- '.github/workflows/examples.yml'
schedule:
# Run the first and fifteenth of every month at 6:22 UTC
- cron: '22 6 1,15 * *'
jobs:
examples:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
SAMPLE: ["Calendar", "Drive", "YouTube", "Storage"]
steps:
- uses: actions/checkout@v4
- name: Build Debug
run: |
set -eu
cd Examples/${{ matrix.SAMPLE }}Sample
pod install
xcodebuild \
-workspace "${{ matrix.SAMPLE }}Sample.xcworkspace" \
-scheme "${{ matrix.SAMPLE }}Sample" \
-configuration Debug \
build
- name: Build Release
run: |
set -eu
cd Examples/${{ matrix.SAMPLE }}Sample
xcodebuild \
-workspace "${{ matrix.SAMPLE }}Sample.xcworkspace" \
-scheme "${{ matrix.SAMPLE }}Sample" \
-configuration Release \
build