-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check regenerated code style only for ubuntu-latest
Signed-off-by: Michael Baentsch <[email protected]>
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,17 @@ jobs: | |
|
||
- name: Check coding style using clang-format | ||
run: ./scripts/do_code_format.sh | ||
|
||
- name: Verify nothing changes on re-generate code | ||
run: | | ||
git config --global user.name "ciuser" && \ | ||
git clone https://github.com/open-quantum-safe/liboqs.git && \ | ||
git config --global user.email "[email protected]" && \ | ||
git config --global --add safe.directory `pwd` && \ | ||
export LIBOQS_SRC_DIR=`pwd`/liboqs && \ | ||
! pip3 install -r oqs-template/requirements.txt 2>&1 | grep ERROR && \ | ||
python3 oqs-template/generate.py && \ | ||
./scripts/do_code_format.sh --no-dry-run && \ | ||
git diff && \ | ||
! git status | grep modified | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,18 +64,15 @@ jobs: | |
run: cd _build/lib && ln -s oqsprovider.so oqsprovider2.so | ||
- name: Test | ||
run: ./scripts/runtests.sh -V | ||
- name: Verify nothing changes on re-generate code | ||
- name: Re-generate code | ||
run: | | ||
apt-get update && apt-get install -y clang-format && \ | ||
git config --global user.name "ciuser" && \ | ||
git config --global user.email "[email protected]" && \ | ||
git config --global --add safe.directory `pwd` && \ | ||
export LIBOQS_SRC_DIR=`pwd`/liboqs && \ | ||
! pip3 install -r oqs-template/requirements.txt 2>&1 | grep ERROR && \ | ||
python3 oqs-template/generate.py && \ | ||
./scripts/do_code_format.sh --no-dry-run && \ | ||
git diff && \ | ||
! git status | grep modified | ||
python3 oqs-template/generate.py | ||
- name: Build .deb install package | ||
run: cpack -C DebPack | ||
working-directory: _build | ||
|