Skip to content

Commit

Permalink
Shift formatting validation order
Browse files Browse the repository at this point in the history
  • Loading branch information
jeaye committed Dec 11, 2024
1 parent c7d0a16 commit 14a23d4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14a23d4

Please sign in to comment.