File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,18 +119,14 @@ jobs:
119119 cachix_auth_token : ${{ secrets.CACHIX_AUTH_TOKEN }}
120120
121121 lint :
122- name : Lint ${{ matrix.lint }} (${{ matrix.target.system }})
123- runs-on : ${{ matrix.target.runner }}
122+ name : Lint ${{ matrix.lint }}
123+ runs-on : linux-amd64-cpu8
124124 strategy :
125125 fail-fast : false
126126 matrix :
127- target :
128- - system : x86_64-linux
129- runner : linux-amd64-cpu8
130- - system : aarch64-linux
131- runner : linux-arm64-cpu8
132127 lint :
133128 - rustfmt
129+ - spdx-headers
134130 - openshell-bootstrap-clippy
135131 - openshell-cli-clippy
136132 - openshell-core-clippy
@@ -155,6 +151,6 @@ jobs:
155151 uses : ./.github/actions/setup-nix
156152 with :
157153 build : checks
158- system : ${{ matrix.target.system }}
154+ system : x86_64-linux
159155 target : ${{ matrix.lint }}
160156 cachix_auth_token : ${{ secrets.CACHIX_AUTH_TOKEN }}
Original file line number Diff line number Diff line change 9191 projectRootFile = "flake.nix" ;
9292 programs . nixfmt . enable = true ;
9393 } ;
94+
95+ spdxHeaders = pkgs . runCommand "spdx-headers" { src = lib . cleanSource ./. ; } ''
96+ cd "$src"
97+ ${ pkgs . python3 } /bin/python scripts/update_license_headers.py --check
98+ touch "$out"
99+ '' ;
94100 in
95101 {
96102 packages =
112118 src = craneLib . cleanCargoSource ./. ;
113119 cargoExtraArgs = "--all" ;
114120 } ;
121+ spdx-headers = spdxHeaders ;
115122 } ;
116123
117124 devShells . default = pkgs . mkShell {
Original file line number Diff line number Diff line change 4343 ".yaml" : "#" ,
4444 ".yml" : "#" ,
4545 ".rego" : "#" ,
46+ ".nix" : "#" ,
4647}
4748
4849# Directories to skip entirely (relative to repo root).
You can’t perform that action at this time.
0 commit comments