mirror of
https://github.com/kata-containers/cgroups-rs.git
synced 2026-08-05 02:13:23 +00:00
Rust 1.69.0, released in 2023, lags significantly behind the version used by Kata Containers. Therefore, we bump it to 1.85.1. Signed-off-by: Xuewei Niu <niuxuewei.nxw@antgroup.com>
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: BVT
|
|
on: [pull_request]
|
|
env:
|
|
RUST_VERSION: 1.85.1
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }}
|
|
- run: make debug
|
|
|
|
fmt:
|
|
name: Format Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }}
|
|
- run: rustup component add rustfmt
|
|
- run: make fmt
|
|
clippy:
|
|
name: Clippy Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }}
|
|
- run: rustup component add clippy
|
|
- run: make clippy
|
|
test:
|
|
name: Run Unit Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- run: rustup install ${{ env.RUST_VERSION }} && rustup default ${{ env.RUST_VERSION }}
|
|
- run: make test
|
|
|
|
|