Skip to content

Commit

Permalink
CI: support the gpu feature
Browse files Browse the repository at this point in the history
Add a step to install the packages required for the gpu feature, and
include clippy tests with this feature enabled.

Signed-off-by: Sergio Lopez <slp@redhat.com>
  • Loading branch information
slp committed Sep 26, 2023
1 parent c6558f9 commit ed1949e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/code_quality-aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: Install packages
run: sudo apt-get update && sudo apt-get install -y libvirglrenderer-dev libepoxy-dev libdrm-dev

- name: Create a fake init
run: touch init/init

Expand All @@ -31,3 +34,6 @@ jobs:

- name: Clippy (default features)
run: cargo clippy -- -D warnings

- name: Clippy (gpu feature)
run: cargo clippy --features gpu -- -D warnings
8 changes: 7 additions & 1 deletion .github/workflows/code_quality-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
override: true
components: rustfmt, clippy

- name: Install packages
run: sudo apt-get update && sudo apt-get install -y libvirglrenderer-dev libepoxy-dev libdrm-dev

- name: Create a fake init
run: touch init/init

Expand All @@ -33,4 +36,7 @@ jobs:
run: cargo clippy -- -D warnings

- name: Clippy (amd-sev feature)
run: cargo clippy --features amd-sev -- -D warnings
run: cargo clippy --features amd-sev -- -D warnings

- name: Clippy (gpu feature)
run: cargo clippy --features gpu -- -D warnings

0 comments on commit ed1949e

Please sign in to comment.