Skip to content

Commit 5e00348

Browse files
authored
Downstream builds contain the build output in a different relative directory than direct builds (#340)
* Downstream builds contain the build output in a different relative directory than direct builds
1 parent fc0e180 commit 5e00348

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.builder/action/aws-c-http-test.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@ PROXY_SETUP=/tmp/setup_proxy_test_env.sh
22
if [ -f "$PROXY_SETUP" ]; then
33
source $PROXY_SETUP
44
export AWS_PROXY_NO_VERIFY_PEER=on
5-
echo "setting proxy integration test envrionment"
5+
echo "setting proxy integration test environment"
6+
fi
7+
8+
if [ -d "./build/aws-c-http/" ]; then
9+
# This is the directory (relative to repo root) that will contain the build when the repo is built directly by the
10+
# builder
11+
cd ./build/aws-c-http/
12+
elif [ -d "../../aws-c-http" ]; then
13+
# This is the directory (relative to repo root) that will contain the build when the repo is built as an upstream
14+
# consumer
15+
cd ../../aws-c-http
616
fi
717

8-
cd ./build/aws-c-http/
918
ctest --output-on-failure
19+

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Build ${{ env.PACKAGE_NAME }}
3434
run: |
3535
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
36-
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} downstream
36+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build downstream -p ${{ env.PACKAGE_NAME }}
3737
3838
linux-compiler-compat:
3939
runs-on: ubuntu-latest
@@ -56,7 +56,7 @@ jobs:
5656
- name: Build ${{ env.PACKAGE_NAME }}
5757
run: |
5858
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
59-
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }} --spec downstream
59+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }}
6060
6161
clang-sanitizers:
6262
runs-on: ubuntu-latest
@@ -86,7 +86,7 @@ jobs:
8686
- name: Build ${{ env.PACKAGE_NAME }}
8787
run: |
8888
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh
89-
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBYO_CRYPTO=ON downstream
89+
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBYO_CRYPTO=ON
9090
9191
windows:
9292
runs-on: windows-latest
@@ -122,6 +122,6 @@ jobs:
122122
run: |
123123
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
124124
chmod a+x builder
125-
./builder build -p ${{ env.PACKAGE_NAME }} downstream
125+
./builder build downstream -p ${{ env.PACKAGE_NAME }}
126126
127127

0 commit comments

Comments
 (0)