Skip to content

Commit

Permalink
Style check fixes (#5)
Browse files Browse the repository at this point in the history
* Style check fixes
* ngtcp2.nim generation
* fix ci
  • Loading branch information
Menduist authored Aug 26, 2022
1 parent fe5e54e commit 76bf924
Show file tree
Hide file tree
Showing 6 changed files with 2,071 additions and 2,022 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: iffy/install-nim@v1.1
- uses: iffy/install-nim@v3
- name: Build
run: nimble install -y
- name: Test
Expand Down
4 changes: 3 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ toast \
--preprocess \
--noHeader \
--defines=NGTCP2_STATICLIB \
--replace=sockaddr=SockAddr,sockaddr_storage=Sockaddr_storage \
--replace=sockaddr=SockAddr,SockAddr_storage=Sockaddr_storage \
--includeDirs="${root}/sources/lib/includes" \
--includeDirs="${root}/build/lib/includes" \
"${root}/sources/lib/includes/ngtcp2/ngtcp2.h" >> "${root}/ngtcp2.nim"

sed -i 's/\bpassC\b/passc/g' ngtcp2.nim
5 changes: 5 additions & 0 deletions config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--styleCheck:usages
if (NimMajor, NimMinor) < (1, 6):
--styleCheck:hint
else:
--styleCheck:error
Loading

0 comments on commit 76bf924

Please sign in to comment.