Skip to content

Commit

Permalink
Fixup for workflows (#2)
Browse files Browse the repository at this point in the history
Fix workflows on windows
  • Loading branch information
WillLillis authored Jul 14, 2024
1 parent 2b35186 commit bd6fed8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
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

0 comments on commit bd6fed8

Please sign in to comment.