Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup for workflows #2

Merged
merged 1 commit into from
Jul 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ on:
push:
branches:
- "*"
paths:
- "src/**"
- "Cargo.*"
- build.rs
pull_request:
branches: ["main"]
paths:
- ".github/workflows/tests.yml"
- "src/**"
- "Cargo.*"
- build.rs

concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
Expand Down Expand Up @@ -44,7 +35,18 @@ jobs:
- uses: Swatinem/rust-cache@v2

- uses: actions/setup-python@v3
- uses: pre-commit/[email protected]

- name: Set up Ruby on Windows
if: runner.os == 'Windows'
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
msys2: true

- name: Install pre-commit dependencies
run: python -m pip install pre-commit

- uses: pre-commit/[email protected]
name: Run pre-commit hooks

- name: Run Rust tests
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Provide a thin wrapper type around the [compile_commands.json](https://clang.llv
and [compile_flags.txt](https://clang.llvm.org/docs/JSONCompilationDatabase.html#alternatives)
standards as provided by the LLVM project.

## Sample usage:
## Sample usage

Given the following `compile_commands.json` file:

Expand Down
Loading