only run apt command if build box is linux

This commit is contained in:
jasonwitty 2025-08-11 23:49:45 -07:00
parent ffb381e40e
commit 5a824c2098

View File

@ -15,6 +15,7 @@ jobs:
with:
components: clippy, rustfmt
- name: Install system dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y libdrm-dev libdrm-amdgpu1
- name: Cargo fmt
run: cargo fmt --all -- --check