mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
build: add sort-profiles target for sort.py
And use it in CI.
Note: The target currently always runs sort.py for all profiles.
Before:
$ ./ci/check/profiles/sort.py etc/inc/*.inc etc/profile*/*.profile
After:
$ make sort-profiles
This commit is contained in:
parent
92d049cdf9
commit
4fa7a64f18
2 changed files with 8 additions and 7 deletions
11
.github/workflows/check-profiles.yml
vendored
11
.github/workflows/check-profiles.yml
vendored
|
|
@ -43,15 +43,12 @@ jobs:
|
|||
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3
|
||||
- name: print env
|
||||
run: ./ci/printenv.sh
|
||||
- name: configure
|
||||
run: ./configure || (cat config.log; exit 1)
|
||||
- run: python3 --version
|
||||
|
||||
- name: sort.py
|
||||
run: >
|
||||
set +e;
|
||||
./ci/check/profiles/sort.py
|
||||
etc/inc/*.inc etc/profile*/*.profile
|
||||
echo;
|
||||
git diff --exit-code
|
||||
- name: sort profiles
|
||||
run: make sort-profiles || (echo; git diff --exit-code)
|
||||
# Currently broken (see #5610)
|
||||
# - name: private-etc-always-required.sh
|
||||
# run: >
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -410,6 +410,10 @@ print-env:
|
|||
installcheck: config.mk
|
||||
command -V $(TARNAME) && $(TARNAME) --version
|
||||
|
||||
.PHONY: sort-profiles
|
||||
sort-profiles: $(PROFILES_INC) $(PROFILES_PRO)
|
||||
@./ci/check/profiles/sort.py $(PROFILES_INC) $(PROFILES_PRO)
|
||||
|
||||
#
|
||||
# make test
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue