Skip to content

Ginkgo batched linear solver #2390

Ginkgo batched linear solver

Ginkgo batched linear solver #2390

Workflow file for this run

name: Checks - formatting
on:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
format_check:
runs-on: ubuntu-latest
container:
image: ghcr.io/llnl/sundials_spack_cache:llvm-17.0.4-h4lflucc3v2vage45opbo2didtcuigsn.spack
steps:
- name: Install git
run: |
apt update
apt install -y git python3-pip
- name: Install black
run: pip install black
- name: Print black version
run: black --version
- name: Install cmake-format
run: pip install cmakelang
- name: Print cmake-format version
run: cmake-format --version
- name: Install fprettify
run: pip install fprettify
- name: Print fprettify version
run: fprettify --version
- name: Print clang-format version
run: clang-format --version
- name: Check out repository code
uses: actions/checkout@v5
- name: Add safe directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Run checker on code
run: |
./scripts/format.sh .
- name: Run git diff to see if anything changed
run: /usr/bin/git diff --exit-code
- name: Run git diff if we failed
if: failure()
run: /usr/bin/git diff > format.patch
- name: Archive diff as a patch if we failed
uses: actions/upload-artifact@v4
if: failure()
with:
name: format.patch
path: |
${{ github.workspace }}/format.patch