Skip to content

Commit

Permalink
check regenerated code style only for ubuntu-latest
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Baentsch <[email protected]>
  • Loading branch information
baentsch committed Dec 5, 2024
1 parent 2aa8bc5 commit 4b289d0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/coding_style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 2 additions & 5 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b289d0

Please sign in to comment.