diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 2c85cbec..f48a0a73 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -28,14 +28,17 @@ runs: path: | ${{ github.workspace }}/build key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('compiler+runtime/bin/build-clang') }} - - name: Validate formatting - shell: bash - working-directory: ${{ github.workspace }}/compiler+runtime - run: ${{ github.workspace }}/compiler+runtime/bin/ci/validate-formatting - name: Compile and test shell: bash working-directory: ${{ github.workspace }}/compiler+runtime run: ${{ github.workspace }}/compiler+runtime/bin/ci/test -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + # We need to validate formatting after building, since we build Clang/LLVM as part of our + # build process and we need clang-format from that local Clang build in order to have + # consistent formatting results. + - name: Validate formatting + shell: bash + working-directory: ${{ github.workspace }}/compiler+runtime + run: ${{ github.workspace }}/compiler+runtime/bin/ci/validate-formatting - if: ${{ env.CODECOV }} == "on" name: Upload report to Codecov uses: codecov/codecov-action@v3