From 6834f4756b6af58356ac9c4fef3d71db3c3ae5fe Mon Sep 17 00:00:00 2001 From: diegomrsantos Date: Tue, 3 Sep 2024 16:14:25 +0200 Subject: [PATCH] chore: add nim 2 to ci (#8) * add nim 2 to ci * fix trigger * remove ConvFromXtoItselfNotNeeded --- .github/workflows/test.yml | 10 ++++++++-- ngtcp2.nim | 2 -- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ac2a25..2a9d278 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,11 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: + workflow_dispatch: jobs: test: @@ -8,13 +13,14 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest, windows-latest] + nim: [1.6.20, stable] steps: - uses: actions/checkout@v2 with: submodules: true - uses: iffy/install-nim@v5 with: - version: 1.6.20 + version: ${{ matrix.nim }} - name: Build run: nimble install -y - name: Test diff --git a/ngtcp2.nim b/ngtcp2.nim index dc0e006..830fff4 100644 --- a/ngtcp2.nim +++ b/ngtcp2.nim @@ -29,7 +29,6 @@ const buildInclude = root/"build"/"lib"/"includes" # const 'NGTCP2_CONN_INFO_VERSION' has unsupported value 'NGTCP2_CONN_INFO_V1' # const 'NGTCP2_SETTINGS_VERSION' has unsupported value 'NGTCP2_SETTINGS_V2' # const 'NGTCP2_CALLBACKS_VERSION' has unsupported value 'NGTCP2_CALLBACKS_V1' -{.push hint[ConvFromXtoItselfNotNeeded]: off.} import macros macro defineEnum(typ: untyped): untyped = @@ -3811,4 +3810,3 @@ proc ngtcp2_select_version*(preferred_versions: ptr uint32; ## Negotiation packet. If no version is selected, this function ## returns 0. ## ``` -{.pop.}