4848
4949 - name : Get Transport Version for Build-Arg
5050 id : transport_version
51- run : echo "version=$(cat ${{ github.workspace }}/src/cpp/ .transport.version)" >> $GITHUB_OUTPUT
51+ run : echo "version=$(cat ${{ github.workspace }}/.transport.version)" >> $GITHUB_OUTPUT
5252
5353 - name : Build and push Docker image
5454 uses : docker/build-push-action@v5
8484 run : |
8585 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
8686 bash -c " \
87- cd ./src/cpp \
8887 && git ls-files -- '*.cpp' '*.h' | xargs clang-format --dry-run --Werror \
8988 "
9089
@@ -117,7 +116,6 @@ jobs:
117116 run : |
118117 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
119118 bash -c " \
120- cd src/cpp \
121119 && cmake -B build -S . \
122120 -DCMAKE_BUILD_TYPE=Debug \
123121 -DENABLE_TESTS=ON \
@@ -127,13 +125,13 @@ jobs:
127125 - name : Build Project
128126 run : |
129127 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
130- bash -c "cmake --build src/cpp/ build --parallel"
128+ bash -c "cmake --build build --parallel"
131129
132130 - name : Upload build directory
133131 uses : actions/upload-artifact@v4
134132 with :
135133 name : build-dir
136- path : ${{ github.workspace }}/src/cpp/ build
134+ path : ${{ github.workspace }}/build
137135
138136 unit_tests :
139137 permissions :
@@ -156,20 +154,20 @@ jobs:
156154 uses : actions/download-artifact@v4
157155 with :
158156 name : build-dir
159- path : ${{ github.workspace }}/src/cpp/ build
157+ path : ${{ github.workspace }}/build
160158
161159 - name : Run Unit Tests
162160 run : |
163- chmod +x ${{ github.workspace }}/src/cpp/ build/test/FireboltClientUnitTests
161+ chmod +x ${{ github.workspace }}/build/test/FireboltClientUnitTests
164162 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
165- bash -c "ctest --test-dir src/cpp/ build/test"
163+ bash -c "ctest --test-dir build/test"
166164
167165 - name : Generate Coverage Report
168166 run : |
169167 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace ${{ needs.build_docker.outputs.image_tag }} \
170168 bash -c " \
171169 set -e \
172- && cd src/cpp/ build \
170+ && cd build \
173171 && mkdir -p coverage \
174172 && gcovr -r .. \
175173 --exclude '.*/test/.*\.h' \
@@ -184,12 +182,12 @@ jobs:
184182 uses : actions/upload-artifact@v4
185183 with :
186184 name : coverage-report
187- path : ${{ github.workspace }}/src/cpp/ build/coverage/
185+ path : ${{ github.workspace }}/build/coverage/
188186
189187 - name : Code Coverage Summary Report
190188 uses : irongut/CodeCoverageSummary@v1.3.0
191189 with :
192- filename : src/cpp/ build/coverage.cobertura.xml
190+ filename : build/coverage.cobertura.xml
193191 badge : true
194192 hide_complexity : true
195193 format : markdown
@@ -221,7 +219,7 @@ jobs:
221219 uses : actions/download-artifact@v4
222220 with :
223221 name : build-dir
224- path : ${{ github.workspace }}/src/cpp/ build
222+ path : ${{ github.workspace }}/build
225223
226224 - name : Setup Mock-Firebolt
227225 id : setup-mock
@@ -235,11 +233,11 @@ jobs:
235233
236234 - name : Run Component Tests
237235 run : |
238- chmod +x ${{ github.workspace }}/src/cpp/ build/test/FireboltClientComponentTests
236+ chmod +x ${{ github.workspace }}/build/test/FireboltClientComponentTests
239237 docker run --rm --user "$(id -u):$(id -g)" -v ${{ github.workspace }}:/workspace -v ${{ env.MOCK_PATH }}:/mock ${{ needs.build_docker.outputs.image_tag }} \
240238 ./.github/scripts/run-component-tests.sh \
241239 --mock /mock \
242240 --config /workspace/.github/mock-firebolt/config.json \
243- --openrpc /workspace/src/cpp/ firebolt-open-rpc.json \
241+ --openrpc /workspace/firebolt-open-rpc.json \
244242 --app-openrpc /workspace/.github/openrpc/firebolt-app-open-rpc.json \
245- --test-exe /workspace/src/cpp/ build/test/FireboltClientComponentTests
243+ --test-exe /workspace/build/test/FireboltClientComponentTests
0 commit comments