build(deps): bump cc from 1.2.2 to 1.2.5 #1925
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
name: Build ${{ matrix.job.target }} | |
runs-on: ${{ matrix.job.os }} | |
strategy: | |
matrix: | |
job: | |
- { os: macos-latest, target: x86_64-apple-darwin } | |
- { | |
os: ubuntu-latest, | |
target: x86_64-unknown-linux-gnu, | |
} | |
- { | |
os: ubuntu-latest, | |
target: i686-unknown-linux-gnu, | |
} | |
- { | |
os: ubuntu-latest, | |
target: aarch64-unknown-linux-gnu, | |
} | |
- { | |
os: windows-latest, | |
target: x86_64-pc-windows-msvc, | |
} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- if: ${{ matrix.job.os == 'ubuntu-latest' }} | |
name: Install cross-compilation tools | |
uses: taiki-e/setup-cross-toolchain-action@v1 | |
with: | |
target: ${{ matrix.job.target }} | |
- if: ${{ matrix.job.os != 'ubuntu-latest' }} | |
name: Install native Rust toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
targets: ${{ matrix.job.target }} | |
components: rustfmt,clippy | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
key: ci-${{steps.toolchain.outputs.name}} | |
- uses: taiki-e/install-action@v2 | |
with: | |
tool: nextest | |
- name: Check formatting | |
run: cargo fmt --all -- --check | |
- if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }} | |
name: Doc tests | |
run: cargo test --doc --features better-build-info,static-grammar-libs,dynamic-grammar-libs | |
- name: Tests | |
run: cargo nextest run --locked --target ${{ matrix.job.target }} --features better-build-info,static-grammar-libs,dynamic-grammar-libs --profile ci | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@v3 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/target/nextest/ci/junit.xml' | |
check_name: diffsitter tests ${{ matrix.job.target }} |