diff --git a/codebuild/spec/buildspec_32bit_cross_compile.yml b/codebuild/spec/buildspec_32bit_cross_compile.yml index 6fbf04e2f79..67eb9450fac 100644 --- a/codebuild/spec/buildspec_32bit_cross_compile.yml +++ b/codebuild/spec/buildspec_32bit_cross_compile.yml @@ -14,6 +14,12 @@ version: 0.2 phases: + pre_build: + commands: + - | + if [ -d "third-party-src" ]; then + cd third-party-src; + fi build: on-failure: ABORT commands: diff --git a/codebuild/spec/buildspec_tsan.yml b/codebuild/spec/buildspec_tsan.yml index 6aaf00efaa9..460d9cbc4c0 100644 --- a/codebuild/spec/buildspec_tsan.yml +++ b/codebuild/spec/buildspec_tsan.yml @@ -14,6 +14,12 @@ version: 0.2 phases: + pre_build: + commands: + - | + if [ -d "third-party-src" ]; then + cd third-party-src; + fi build: on-failure: ABORT commands: diff --git a/codebuild/spec/buildspec_ubuntu_cmake.yml b/codebuild/spec/buildspec_ubuntu_cmake.yml index 88360356bda..0ce71aa558e 100644 --- a/codebuild/spec/buildspec_ubuntu_cmake.yml +++ b/codebuild/spec/buildspec_ubuntu_cmake.yml @@ -14,6 +14,12 @@ version: 0.2 phases: + pre_build: + commands: + - | + if [ -d "third-party-src" ]; then + cd third-party-src; + fi build: on-failure: ABORT commands: