diff --git a/.github/workflows/ci-master-only.yml b/.github/workflows/ci-master-only.yml new file mode 100644 index 000000000..dc78d17e9 --- /dev/null +++ b/.github/workflows/ci-master-only.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..57a36df68 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/build.sh b/build.sh index 74fe48eb5..a58fc11fc 100755 --- a/build.sh +++ b/build.sh @@ -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 @@ -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 @@ -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 diff --git a/examples/ASDKgram/Podfile b/examples/ASDKgram/Podfile index 8611fa11f..69504e8ef 100644 --- a/examples/ASDKgram/Podfile +++ b/examples/ASDKgram/Podfile @@ -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