-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub Actions now supports CI and it's free for open source projects! Our current CI runs on a single machine and needs 1h 20m for each build. GitHub CI often finishes everything in less than 10m! The setup is straight-forward. The only missing feature is the ability to exclude certain files so that if a commit only contains those files, the CI won't test it at all (see exclude-from-build.json). Given that GitHub CI is fast and is not a serial queue, I wouldn't mind testing such commit as well. * Fix and optimize steps that build example projects - examples-pt3 builds the same examples as examples-pt1 instead of building the remaining projects. So I fixed it. - Add another mode (examples-pt4) to distribute the load with existing steps. - Build extra examples (examples-extra-pt{1, 2, 3}) which weren't built before. - Each examples-pt and examples-extra-pt builds 5 projects except examples-pt4 and examples-extra-pt3 which build 6. * Use HTTPS URL for Weaver in Podfile of examples/ASDKgram * Don't build extra examples for now
- Loading branch information
Showing
4 changed files
with
97 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: CI (master-only jobs) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
cocoapods-lint: | ||
name: Verify that podspec lints | ||
runs-on: macOS-10.14 | ||
steps: | ||
- name: Checkout the Git repository | ||
uses: actions/checkout@v1 | ||
- name: Run build.sh with cocoapods-lint mode | ||
run: ./build.sh cocoapods-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: CI | ||
|
||
on: push | ||
|
||
jobs: | ||
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: | ||
- name: Checkout the Git repository | ||
uses: actions/checkout@v1 | ||
- run: ./build.sh ${{ matrix.mode }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters