Skip to content

Commit

Permalink
Use strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhuy committed Aug 17, 2019
1 parent 6f8d378 commit 1c7d0b2
Showing 1 changed file with 26 additions and 55 deletions.
81 changes: 26 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,58 +3,29 @@ name: CI
on: push

jobs:
tests:
name: Build and run tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh tests
dynamic-framework:
name: Build Texture as a dynamic framework
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh framework
static-library:
name: Build Texture as a static library
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh life-without-cocoapods
carthage:
name: Verify that Carthage works
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh carthage
examples-pt1:
name: Build examples (examples-pt1)
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh examples-pt1
examples-pt2:
name: Build examples (examples-pt2)
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh examples-pt2
examples-pt3:
name: Build examples (examples-pt3)
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh examples-pt3
examples-pt4:
name: Build examples (examples-pt4)
needs: tests
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh examples-pt4
buildsh:
strategy:
matrix:
mode: [tests, framework, life-without-cocoapods, carthage, examples-pt1, examples-pt2, examples-pt3, examples-pt4]
include:
- mode: tests
name: Build and run tests
- mode: framework
name: Build Texture as a dynamic framework
- mode: life-without-cocoapods
name: Build Texture as a static library
- mode: carthage
name: Verify that Carthage works
- mode: examples-pt1
name: Build examples (examples-pt1)
- mode: examples-pt2
name: Build examples (examples-pt2)
- mode: examples-pt3
name: Build examples (examples-pt3)
- mode: examples-pt4
name: Build examples (examples-pt4)
name: ${{ matrix.name }}
runs-on: macOS-10.14
steps:
- uses: actions/checkout@v1
- run: ./build.sh ${{ matrix.mode }}

0 comments on commit 1c7d0b2

Please sign in to comment.