forked from Quick/Quick
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (39 loc) · 1.19 KB
/
ci-xcode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI (Xcode)
on:
push:
branches:
- main
tags:
- "*"
pull_request:
jobs:
filter:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
paths: '[".github/workflows/ci-xcode.yml", "Externals", "Quick.xc*", "Sources/**", "Tests/**", "Rakefile", "Externals"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'
xcode:
name: Xcode ${{ matrix.xcode }} (${{ matrix.platform }})
needs: filter
runs-on: macos-12
strategy:
matrix:
xcode: ["14.0.1"]
platform: ["macos", "ios", "tvos"]
fail-fast: false
env:
DEVELOPER_DIR: "/Applications/Xcode_${{ matrix.xcode }}.app"
steps:
- uses: actions/checkout@v4
with:
submodules: true
if: ${{ needs.filter.outputs.should_skip != 'true' }}
- run: rake test:${{ matrix.platform }}
if: ${{ needs.filter.outputs.should_skip != 'true' }}
- run: rake test:${{ matrix.platform }}_static
if: ${{ needs.filter.outputs.should_skip != 'true' && matrix.platform == 'macos' }}