Skip to content

Commit

Permalink
Add exclusion for ci-cpp workflow for doc only changes (apache#7672)
Browse files Browse the repository at this point in the history
add back the doc only change filter for ci-cpp workflow.
  • Loading branch information
aahmed-se authored Jul 27, 2020
1 parent 054f18b commit b1127c3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci-cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- name: Check if this pull request only changes documentation
id: docs
uses: apache/pulsar-test-infra/diff-only@master
with:
args: site2 deployment .asf.yaml .ci ct.yaml

- name: Cache local Maven repository
if: steps.docs.outputs.changed_only == 'no'
uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -56,6 +63,7 @@ jobs:
java-version: 1.8

- name: clean disk
if: steps.docs.outputs.changed_only == 'no'
run: |
sudo swapoff -a
sudo rm -f /swapfile
Expand All @@ -64,13 +72,16 @@ jobs:
df -h
- name: build package
if: steps.docs.outputs.changed_only == 'no'
run: mvn -B -ntp -q install -Pcore-modules -DskipTests

- name: build cpp artifacts
if: steps.docs.outputs.changed_only == 'no'
run: |
echo "Build C++ client library"
export CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Debug -DBUILD_DYNAMIC_LIB=OFF"
pulsar-client-cpp/docker-build.sh
- name: run c++ tests
run: pulsar-client-cpp/docker-tests.sh
if: steps.docs.outputs.changed_only == 'no'
run: ./build/retry.sh pulsar-client-cpp/docker-tests.sh

0 comments on commit b1127c3

Please sign in to comment.