56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
name: CI
|
|
|
|
# Controls when the action will run.
|
|
on:
|
|
# Triggers the workflow on push or pull request events
|
|
push:
|
|
pull_request:
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
include:
|
|
- name: "MoltenVK (macOS)"
|
|
platform: "macos"
|
|
scheme: "MoltenVK Package (macOS only)"
|
|
demos-scheme: "Cube-macOS"
|
|
- name: "MoltenVK (iOS)"
|
|
platform: "ios"
|
|
scheme: "MoltenVK Package (iOS only)"
|
|
demos-scheme: ""
|
|
- name: "MoltenVK (tvOS)"
|
|
platform: "tvos"
|
|
scheme: "MoltenVK Package (tvOS only)"
|
|
demos-scheme: ""
|
|
fail-fast: false
|
|
|
|
name: '${{ matrix.name }}'
|
|
|
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Select Xcode version
|
|
# See: https://github.com/actions/virtual-environments/tree/main/images/macos
|
|
run: sudo xcode-select -switch /Applications/Xcode_12.2.app/Contents/Developer
|
|
|
|
- name: Fetch Dependencies
|
|
run: |
|
|
./fetchDependencies -v --no-parallel-build --${{ matrix.platform }}
|
|
|
|
- name: Build MoltenVK
|
|
run: |
|
|
xcodebuild build -project MoltenVKPackaging.xcodeproj -scheme "${{ matrix.scheme }}"
|
|
|
|
- name: Build Demos
|
|
if: success() && !(matrix.demos-scheme == '')
|
|
run: |
|
|
xcodebuild build -workspace Demos/Demos.xcworkspace -scheme "${{ matrix.demos-scheme }}"
|