diff --git a/.github/workflows/autoformat.yml b/.github/workflows/autoformat.yml index 1733f5f2..6cd9283e 100644 --- a/.github/workflows/autoformat.yml +++ b/.github/workflows/autoformat.yml @@ -36,15 +36,6 @@ jobs: shell: ${{ matrix.shell }} steps: - # TODO use actions/cache to avoid having to download every time - - name: Install clang-format - run: | - deps/get-clang-format.sh - ls -l - echo $(pwd) >> $GITHUB_PATH - clang-format --version - - - name: Disable autocrlf # Messes up everything on Windows since the formatter applies \n run: | git config --global core.autocrlf false @@ -57,6 +48,14 @@ jobs: fetch-depth: 1 submodules: false + # TODO use actions/cache to avoid having to download every time + - name: Install clang-format + run: | + deps/get-clang-format.sh + ls -l + echo $(pwd) >> $GITHUB_PATH + clang-format --version + - name: Install stylua run: | wget https://github.com/JohnnyMorganz/StyLua/releases/download/${{ env.EVO_STYLUA_VERSION }}/${{ matrix.stylua }}