name: CI

on:
  push:
    branches:
    - master
    - develop
    - feature/*
  pull_request:
    branches:
    - develop

# macOS environments: https://github.com/actions/virtual-environments/tree/main/images/macos

jobs:
  build:
    name: CI build
    runs-on: macos-10.15
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: force Xcode 12.2
        run: sudo xcode-select -switch /Applications/Xcode_12.2.app
      - name: setup
        run: exec ./.github/scripts/setup.sh
      - name: build
        run: exec ./.github/scripts/build.sh
