diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index a944b0e558..5dc7b711bf 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -492,7 +492,7 @@ nimble examples # Build and run C examples | Workflow | Description | |----------|-------------| -| `ci.yml` | Main CI: Linux (amd64/i386), macOS (arm64), Windows; Nim v2.0.16 & v2.2.6 | +| `ci.yml` | Main CI: Linux (amd64/i386), macOS (arm64), Windows; Nim v2.2.4 & v2.2.10 | | `daily_amd64.yml` / `daily_i386.yml` | Extended daily tests | | `daily_ci_report.yml` | Daily CI failure reporting: opens/updates GitHub issues for failed daily CI runs | | `daily_common.yml` | Shared steps/config reused by daily workflows | diff --git a/.github/workflows/cbindings.yml b/.github/workflows/cbindings.yml index 077d22687e..b54661fa69 100644 --- a/.github/workflows/cbindings.yml +++ b/.github/workflows/cbindings.yml @@ -38,7 +38,7 @@ jobs: shell: bash os: linux cpu: amd64 - nim_ref: v2.2.6 + nim_ref: v2.2.10 - name: Restore deps from cache id: deps-cache diff --git a/.github/workflows/daily_amd64.yml b/.github/workflows/daily_amd64.yml index 43ae8be354..1d287d2beb 100644 --- a/.github/workflows/daily_amd64.yml +++ b/.github/workflows/daily_amd64.yml @@ -18,8 +18,8 @@ jobs: uses: ./.github/workflows/daily_common.yml with: nim: "[ - {'ref': 'v2.0.16', 'memory_management': 'refc'}, - {'ref': 'v2.2.6', 'memory_management': 'refc'}, + {'ref': 'v2.2.4', 'memory_management': 'refc'}, + {'ref': 'v2.2.10', 'memory_management': 'refc'}, {'ref': 'devel', 'memory_management': 'refc'}, ]" configuration: "[ @@ -36,8 +36,8 @@ jobs: with: pinned_deps: true nim: "[ - {'ref': 'v2.0.16', 'memory_management': 'refc'}, - {'ref': 'v2.2.6', 'memory_management': 'refc'}, + {'ref': 'v2.2.4', 'memory_management': 'refc'}, + {'ref': 'v2.2.10', 'memory_management': 'refc'}, {'ref': 'devel', 'memory_management': 'refc'}, ]" configuration: "[ diff --git a/.github/workflows/daily_i386.yml b/.github/workflows/daily_i386.yml index 371829391e..cb1c4c6944 100644 --- a/.github/workflows/daily_i386.yml +++ b/.github/workflows/daily_i386.yml @@ -15,8 +15,8 @@ jobs: uses: ./.github/workflows/daily_common.yml with: nim: "[ - {'ref': 'v2.0.16', 'memory_management': 'refc'}, - {'ref': 'v2.2.6', 'memory_management': 'refc'}, + {'ref': 'v2.2.4', 'memory_management': 'refc'}, + {'ref': 'v2.2.10', 'memory_management': 'refc'}, {'ref': 'devel', 'memory_management': 'refc'}, ]" configuration: "[ @@ -28,8 +28,8 @@ jobs: with: pinned_deps: true nim: "[ - {'ref': 'v2.0.16', 'memory_management': 'refc'}, - {'ref': 'v2.2.6', 'memory_management': 'refc'}, + {'ref': 'v2.2.4', 'memory_management': 'refc'}, + {'ref': 'v2.2.10', 'memory_management': 'refc'}, {'ref': 'devel', 'memory_management': 'refc'}, ]" configuration: "[ diff --git a/.github/workflows/daily_tests_no_flags.yml b/.github/workflows/daily_tests_no_flags.yml index 905d4593f6..5946e5e999 100644 --- a/.github/workflows/daily_tests_no_flags.yml +++ b/.github/workflows/daily_tests_no_flags.yml @@ -29,7 +29,7 @@ jobs: shell: bash os: linux cpu: amd64 - nim_ref: v2.2.6 + nim_ref: v2.2.10 - name: Restore deps from cache id: deps-cache diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 51dacd46d5..547940d95c 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -38,7 +38,7 @@ jobs: shell: bash os: linux cpu: amd64 - nim_ref: v2.2.6 + nim_ref: v2.2.10 - name: Restore deps from cache id: deps-cache diff --git a/README.md b/README.md index 02b44f90c0..2c431c784d 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Jump into the [contributing](docs/contributing.md) page to get started, `nim-lib ## Install -The currently supported Nim versions are v2.0.16 and v2.2.6. +The currently supported Nim versions are v2.2.4 and v2.2.10. ``` nimble install libp2p @@ -143,4 +143,4 @@ List of packages modules implemented in nim-libp2p: | **Privacy** | | | [mix](nim-libp2p/libp2p/protocols/mix.nim) | [Mix](https://lip.logos.co/ift-ts/raw/mix.html#5-protocol-overview) network protocol with [Sphinx](https://cypherpunks.ca/~iang/pubs/Sphinx_Oakland09.pdf) packet format for anonymity | | **Performance** | | -| [perf](nim-libp2p/libp2p/protocols/perf/core.nim) | [Perf](https://github.com/libp2p/specs/blob/master/perf/perf.md) protocol for benchmarking libp2p nodes | \ No newline at end of file +| [perf](nim-libp2p/libp2p/protocols/perf/core.nim) | [Perf](https://github.com/libp2p/specs/blob/master/perf/perf.md) protocol for benchmarking libp2p nodes | diff --git a/interop/hole-punching/Dockerfile b/interop/hole-punching/Dockerfile index a95b8df26a..44590b9c23 100644 --- a/interop/hole-punching/Dockerfile +++ b/interop/hole-punching/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.5-labs -FROM nimlang/nim:2.2.6-ubuntu-regular as builder +FROM nimlang/nim:2.2.10 as builder WORKDIR /app @@ -8,7 +8,7 @@ COPY .pinned libp2p.nimble nim-libp2p/ RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y --no-install-recommends ca-certificates binutils libssl-dev \ && rm -rf /var/lib/apt/lists/* -RUN cd nim-libp2p && nimble install_pinned && nimble install redis -y +RUN cd nim-libp2p && nimble install -y redis && nimble install_pinned COPY . nim-libp2p/ diff --git a/interop/perf/Dockerfile b/interop/perf/Dockerfile index 6b57096d1e..44db351645 100644 --- a/interop/perf/Dockerfile +++ b/interop/perf/Dockerfile @@ -8,7 +8,7 @@ COPY .pinned libp2p.nimble nim-libp2p/ RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y --no-install-recommends ca-certificates binutils \ && rm -rf /var/lib/apt/lists/* -RUN cd nim-libp2p && nimble install_pinned && nimble install redis -y +RUN cd nim-libp2p && nimble install -y redis && nimble install_pinned COPY . nim-libp2p/ diff --git a/interop/transport-v2/Dockerfile b/interop/transport-v2/Dockerfile index 76fc6f9902..fe6cf8bfa4 100644 --- a/interop/transport-v2/Dockerfile +++ b/interop/transport-v2/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.5-labs -FROM nimlang/nim:2.2.6-ubuntu-regular as builder +FROM nimlang/nim:2.2.10 as builder WORKDIR /app @@ -8,7 +8,7 @@ COPY .pinned libp2p.nimble nim-libp2p/ RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y --no-install-recommends ca-certificates binutils \ && rm -rf /var/lib/apt/lists/* -RUN cd nim-libp2p && nimble install_pinned && nimble install redis -y +RUN cd nim-libp2p && nimble install -y redis && nimble install_pinned COPY . nim-libp2p/ diff --git a/interop/transport/Dockerfile b/interop/transport/Dockerfile index a23e12c5cc..a698356cce 100644 --- a/interop/transport/Dockerfile +++ b/interop/transport/Dockerfile @@ -1,5 +1,5 @@ # syntax=docker/dockerfile:1.5-labs -FROM nimlang/nim:2.2.6-ubuntu-regular as builder +FROM nimlang/nim:2.2.10 as builder WORKDIR /app @@ -8,7 +8,7 @@ COPY .pinned libp2p.nimble nim-libp2p/ RUN --mount=type=cache,target=/var/cache/apt apt-get update && apt-get install -y --no-install-recommends ca-certificates binutils \ && rm -rf /var/lib/apt/lists/* -RUN cd nim-libp2p && nimble install_pinned && nimble install redis -y +RUN cd nim-libp2p && nimble install -y redis && nimble install_pinned COPY . nim-libp2p/ diff --git a/performance/test_node/Dockerfile b/performance/test_node/Dockerfile index 7e11ffe92a..d949006030 100644 --- a/performance/test_node/Dockerfile +++ b/performance/test_node/Dockerfile @@ -1,5 +1,5 @@ # Create the build image -FROM nimlang/nim:2.2.6-ubuntu-regular AS build +FROM nimlang/nim:2.2.10 AS build WORKDIR /node @@ -19,7 +19,7 @@ RUN nimble c \ performance/test_node/main.nim -FROM nimlang/nim:2.2.6-alpine-slim +FROM nimlang/nim:2.2.10 WORKDIR /node @@ -31,4 +31,4 @@ RUN chmod +x main entrypoint.sh \ VOLUME ["/output"] -ENTRYPOINT ["/node/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/node/entrypoint.sh"] diff --git a/simulation/Dockerfile b/simulation/Dockerfile index abc1b54a39..f8362427aa 100644 --- a/simulation/Dockerfile +++ b/simulation/Dockerfile @@ -1,6 +1,6 @@ # Build context must be the repo root: # docker build -f simulation/Dockerfile -t nim-libp2p/simulation . -FROM nimlang/nim:2.2.6-ubuntu-regular AS build +FROM nimlang/nim:2.2.10 AS build WORKDIR /node COPY . .