mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Check formatting and cache builds
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -20,6 +20,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install rustfmt
|
||||
run: rustup component add rustfmt --toolchain stable-x86_64-apple-darwin
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all -- --check
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run tests
|
||||
|
||||
Reference in New Issue
Block a user