ci/rustfmt: simplify getting all the rust files
authorEric Engestrom <eric@igalia.com>
Mon, 13 Mar 2023 19:32:29 +0000 (19:32 +0000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Mar 2023 18:53:51 +0000 (18:53 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21884>

.gitlab-ci/test/gitlab-ci.yml

index 98a6dea..78a493a 100644 (file)
@@ -27,7 +27,8 @@ rustfmt:
   variables:
     GIT_STRATEGY: fetch
   script:
-    - git ls-files */{lib,app}.rs | xargs rustfmt --check
+    - shopt -s globstar
+    - rustfmt --check src/**/*.rs
 
 .test-gl:
   extends: