Skip to content

fix warnings when build images #174

fix warnings when build images

fix warnings when build images #174

Workflow file for this run

name: build
on:
pull_request:
branches:
- '*'
push:
branches:
- 'main'
tags:
- '*'
workflow_dispatch: {}
jobs:
rust-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: rust-src, clippy, rustfmt
override: false
- name: Install bpf-linker
run: |
cargo install bpf-linker
# TODO: Once we migrate the controller from Go to Rust,
# add the controller build step here.
- name: Build all rust crates (dataplane, test server)
run: |
make build.rust
- name: Check formatting
run: |
make check.format.rust
- name: Check clippy
run: |
make lint.rust