Skip to content

Merge pull request #185 from qulacs/upgrade-cuda-version #156

Merge pull request #185 from qulacs/upgrade-cuda-version

Merge pull request #185 from qulacs/upgrade-cuda-version #156

Workflow file for this run

name: Format
on:
push:
paths-ignore:
- ".devcontainer/**"
- ".vscode/**"
- "doc/**"
- "*.md"
pull_request:
paths-ignore:
- ".devcontainer/**"
- ".vscode/**"
- "doc/**"
- "*.md"
jobs:
check-format:
name: Check Format
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: lukka/get-cmake@latest
- name: Install Ninja
run: sudo apt install ninja-build
- name: Configure
run: |
script/configure
- name: Check format
run: |
ninja -C build format
diff=$(git diff)
echo -n "$diff"
test $(echo -n "$diff" | wc -l) -eq 0