[GitHub Actions] Update to Xcode 12.4, adjust build matrix

This commit is contained in:
past-due 2021-02-03 15:59:50 -05:00
parent fcb4701f47
commit ac04d80cb9

View File

@ -8,26 +8,25 @@ on:
# Allows you to run this workflow manually from the Actions tab # Allows you to run this workflow manually from the Actions tab
workflow_dispatch: workflow_dispatch:
env:
# See: https://github.com/actions/virtual-environments/tree/main/images/macos
XCODE_DEV_PATH: /Applications/Xcode_12.3.app/Contents/Developer
# A workflow run is made up of one or more jobs that can run sequentially or in parallel # A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
build: build:
strategy: strategy:
matrix: matrix:
include: xcode: [ "12.4" ]
- platform: "macos" platform: [ "macos", "maccat", "ios", "tvos" ]
- platform: "maccat" os: [ "macos-latest" ]
- platform: "ios" upload_artifacts: [ true ]
- platform: "tvos"
fail-fast: false fail-fast: false
name: 'MoltenVK (${{ matrix.platform }})' name: 'MoltenVK (Xcode ${{ matrix.xcode }} - ${{ matrix.platform }})'
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners#supported-runners-and-hardware-resources # 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 runs-on: ${{ matrix.os }}
env:
# See: https://github.com/actions/virtual-environments/tree/main/images/macos
XCODE_DEV_PATH: "/Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer"
steps: steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@ -82,10 +81,12 @@ jobs:
fi fi
- name: Tar Artifacts - name: Tar Artifacts
if: success() && matrix.upload_artifacts == true
# See: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files # See: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files
run: tar -cvf "${{ matrix.platform }}.tar" Package/Release/ run: tar -cvf "${{ matrix.platform }}.tar" Package/Release/
- name: Upload Artifacts - name: Upload Artifacts
if: success() && matrix.upload_artifacts == true
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: ${{ matrix.platform }} name: ${{ matrix.platform }}