mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
81 lines
1.7 KiB
YAML
81 lines
1.7 KiB
YAML
name: "Rust"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "rust/**"
|
|
- "misc/bazel/**"
|
|
- "misc/codegen/**"
|
|
- "shared/**"
|
|
- "MODULE.bazel"
|
|
- .github/workflows/rust.yml
|
|
- .github/actions/**
|
|
- codeql-workspace.yml
|
|
- "!**/*.md"
|
|
- "!**/*.qhelp"
|
|
branches:
|
|
- rust-experiment
|
|
- main
|
|
- rc/*
|
|
- codeql-cli-*
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
rust-ast-generator:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: rust/ast-generator
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Inject sources
|
|
shell: bash
|
|
run: |
|
|
bazel run //rust/ast-generator:inject-sources
|
|
- name: Format
|
|
shell: bash
|
|
run: |
|
|
cargo fmt --check
|
|
- name: Compilation
|
|
shell: bash
|
|
run: cargo check
|
|
- name: Clippy
|
|
shell: bash
|
|
run: |
|
|
cargo clippy --no-deps -- -D warnings
|
|
rust-code:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: rust/extractor
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Format
|
|
shell: bash
|
|
run: |
|
|
cargo fmt --check
|
|
- name: Compilation
|
|
shell: bash
|
|
run: cargo check
|
|
- name: Clippy
|
|
shell: bash
|
|
run: |
|
|
cargo clippy --no-deps -- -D warnings
|
|
rust-codegen:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
- name: Install CodeQL
|
|
uses: ./.github/actions/fetch-codeql
|
|
- name: Code generation
|
|
shell: bash
|
|
run: |
|
|
bazel run //rust/codegen
|
|
git add .
|
|
git diff --exit-code HEAD
|