Skip to content

Commit cf555a8

Browse files
committed
📦👷 Add license compliance checks and file generation to CI
1 parent 257a87d commit cf555a8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

‎project_name/.github/workflows/ci.yml.jinja‎

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,25 @@ jobs:
196196
[ $((result & 16)) -ne 0 ] && echo "::warning ::Pylest convention(s) found"
197197
[ $((result & 32)) -ne 0 ] && echo "::error ::Pylest usage error"
198198
exit $((result & 35))
199+
200+
check-licenses:
201+
runs-on: ubuntu-latest
202+
steps:
203+
- uses: actions/checkout@v4
204+
- uses: dtolnay/rust-toolchain@stable
205+
- name: Set rust profile
206+
run: rustup set profile minimal
207+
- name: Install Feluda
208+
run: cargo install feluda
209+
- name: Check licenses
210+
run: feluda --ci-format github --fail-on-restrictive --fail-on-incompatible
211+
- name: Generate compliance files
212+
run: |
213+
echo "1" | feluda generate # Auto-select NOTICE file
214+
echo "2" | feluda generate # Auto-select THIRD_PARTY_LICENSES file
215+
- uses: actions/upload-artifact@v4
216+
with:
217+
name: license-compliance
218+
path: |
219+
NOTICE
220+
THIRD_PARTY_LICENSES.md

0 commit comments

Comments
 (0)