Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up GitHub Actions CI #1623

Merged
merged 6 commits into from
Aug 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci-master-only.yml
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
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
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 }}
57 changes: 48 additions & 9 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ if [ "$MODE" = "examples-pt1" ]; then
#Update cocoapods repo
pod repo update master

for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -6 | head); do
echo "Building (examples-pt1) $example."
for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -6); do
echo "Building (examples-pt1) $example"

build_example $example
done
Expand All @@ -123,8 +123,8 @@ if [ "$MODE" = "examples-pt2" ]; then
#Update cocoapods repo
pod repo update master

for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -12 | tail -6 | head); do
echo "Building $example (examples-pt2)."
for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -11 | tail -5); do
echo "Building (examples-pt2) $example"

build_example $example
done
Expand All @@ -136,21 +136,60 @@ if [ "$MODE" = "examples-pt3" ]; then
#Update cocoapods repo
pod repo update master

for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -7 | head); do
echo "Building $example (examples-pt3)."
for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | head -16 | tail -5); do
echo "Building (examples-pt3) $example"

build_example $example
done
success="1"
fi

if [ "$MODE" = "examples-extra" ]; then
if [ "$MODE" = "examples-pt4" ]; then
echo "Verifying that all AsyncDisplayKit examples compile."
#Update cocoapods repo
pod repo update master

for example in $((find ./examples_extra -type d -maxdepth 1 \( ! -iname ".*" \)) | head -7 | head); do
echo "Building $example (examples-extra)."
for example in $((find ./examples -type d -maxdepth 1 \( ! -iname ".*" \)) | tail -n +17); do
echo "Building (examples-pt4) $example"

build_example $example
done
success="1"
fi

if [ "$MODE" = "examples-extra-pt1" ]; then
echo "Verifying that all AsyncDisplayKit examples compile."
#Update cocoapods repo
pod repo update master

for example in $((find ./examples_extra -type d -maxdepth 1 \( ! -iname ".*" \)) | head -6); do
echo "Building (examples-extra-pt1) $example"

build_example $example
done
success="1"
fi

if [ "$MODE" = "examples-extra-pt2" ]; then
echo "Verifying that all AsyncDisplayKit examples compile."
#Update cocoapods repo
pod repo update master

for example in $((find ./examples_extra -type d -maxdepth 1 \( ! -iname ".*" \)) | head -11 | tail -5); do
echo "Building (examples-extra-pt2) $example"

build_example $example
done
success="1"
fi

if [ "$MODE" = "examples-extra-pt3" ]; then
echo "Verifying that all AsyncDisplayKit examples compile."
#Update cocoapods repo
pod repo update master

for example in $((find ./examples_extra -type d -maxdepth 1 \( ! -iname ".*" \)) | tail -n +12); do
echo "Building (examples-extra-pt3) $example"

build_example $example
done
Expand Down
2 changes: 1 addition & 1 deletion examples/ASDKgram/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ target 'Sample' do
pod 'Texture/PINRemoteImage', :path => '../..'
pod 'Texture/Yoga', :path => '../..'
pod 'Texture/Video', :path => '../..'
pod 'Weaver', :git => 'git@github.com:TextureGroup/Weaver.git', :branch => 'master'
pod 'Weaver', :git => 'https://github.com/TextureGroup/Weaver.git', :branch => 'master'
end