From 412af51b635a440b74aeba0b976e94edb0e6c3ea Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 18 Jun 2024 21:59:48 +0200 Subject: [PATCH 01/22] test: install latest Nimble then Nim --- .github/workflows/ci-test.yml | 155 ++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 .github/workflows/ci-test.yml diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..48de618 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,155 @@ +name: Test with latest Nimble +on: + push: + branches: + - test-with-latest-nimble + pull_request: + workflow_dispatch: + +concurrency: # Cancel stale PR builds (but not push builds) + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +jobs: + build: + strategy: + fail-fast: false + matrix: + target: + - os: linux + cpu: amd64 + branch: [devel] + include: + - target: + os: linux + builder: ubuntu-latest + shell: bash + + defaults: + run: + shell: ${{ matrix.shell }} + + name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (Nim ${{ matrix.branch }})' + runs-on: ${{ matrix.builder }} + continue-on-error: ${{ matrix.branch == 'devel' }} + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install build dependencies (Linux i386) + if: runner.os == 'Linux' && matrix.target.cpu == 'i386' + run: | + sudo dpkg --add-architecture i386 + sudo apt-fast update -qq + sudo DEBIAN_FRONTEND='noninteractive' apt-fast install \ + --no-install-recommends -yq gcc-multilib g++-multilib \ + libssl-dev:i386 + mkdir -p external/bin + cat << EOF > external/bin/gcc + #!/bin/bash + exec $(which gcc) -m32 "\$@" + EOF + cat << EOF > external/bin/g++ + #!/bin/bash + exec $(which g++) -m32 "\$@" + EOF + chmod 755 external/bin/gcc external/bin/g++ + echo '${{ github.workspace }}/external/bin' >> $GITHUB_PATH + + - name: 'Install dependencies (macOS)' + if: runner.os == 'macOS' && matrix.branch == 'devel' + run: | + brew install openssl@1.1 + ln -s $(brew --prefix)/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/lib + ln -s $(brew --prefix)/opt/openssl/lib/libssl.1.1.dylib /usr/local/lib/ + + - name: MSYS2 (Windows i386) + if: runner.os == 'Windows' && matrix.target.cpu == 'i386' + uses: msys2/setup-msys2@v2 + with: + path-type: inherit + msystem: MINGW32 + install: >- + base-devel + git + mingw-w64-i686-toolchain + + - name: MSYS2 (Windows amd64) + if: runner.os == 'Windows' && matrix.target.cpu == 'amd64' + uses: msys2/setup-msys2@v2 + with: + path-type: inherit + install: >- + base-devel + git + mingw-w64-x86_64-toolchain + + - name: Restore Nim DLLs dependencies (Windows) from cache + if: runner.os == 'Windows' + id: windows-dlls-cache + uses: actions/cache@v4 + with: + path: external/dlls-${{ matrix.target.cpu }} + key: 'dlls-${{ matrix.target.cpu }}' + + - name: Install DLLs dependencies (Windows) + if: > + steps.windows-dlls-cache.outputs.cache-hit != 'true' && + runner.os == 'Windows' + run: | + mkdir -p external + curl -L "https://nim-lang.org/download/windeps.zip" -o external/windeps.zip + 7z x -y external/windeps.zip -oexternal/dlls-${{ matrix.target.cpu }} + + - name: Path to cached dependencies (Windows) + if: > + runner.os == 'Windows' + run: | + echo "${{ github.workspace }}/external/dlls-${{ matrix.target.cpu }}" >> $GITHUB_PATH + + - name: Derive environment variables + run: | + if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then + PLATFORM=x64 + else + PLATFORM=x86 + fi + echo "PLATFORM=$PLATFORM" >> $GITHUB_ENV + + ncpu= + MAKE_CMD="make" + case '${{ runner.os }}' in + 'Linux') + ncpu=$(nproc) + ;; + 'macOS') + ncpu=$(sysctl -n hw.ncpu) + ;; + 'Windows') + ncpu=$NUMBER_OF_PROCESSORS + MAKE_CMD="mingw32-make" + ;; + esac + [[ -z "$ncpu" || $ncpu -le 0 ]] && ncpu=1 + echo "ncpu=$ncpu" >> $GITHUB_ENV + echo "MAKE_CMD=${MAKE_CMD}" >> $GITHUB_ENV + + - name: Download Nimble and install Nim + run: | + curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz + tar xvfz nimble-linux_x64.tar.gz + ./nimble install nim + echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH + + - name: Run tests + run: | + if [[ "${{ matrix.target.os }}" == "windows" ]]; then + # https://github.com/status-im/nimbus-eth2/issues/3121 + export NIMFLAGS="-d:nimRawSetjmp" + fi + nim --version + nimble --version + nimble install -y --depsOnly + rm -f nimble.lock + env NIMLANG=c nimble test + env NIMLANG=cpp nimble test From cdce6ef5c294f36f30bbe5318cf21bc4f6432084 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 18 Jun 2024 22:55:06 +0200 Subject: [PATCH 02/22] fix: branch name in wf --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 48de618..1547fd9 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -2,7 +2,7 @@ name: Test with latest Nimble on: push: branches: - - test-with-latest-nimble + - test-with-nightly-nimble pull_request: workflow_dispatch: From e7af41c2551d251cf5f5ea08f33bfbf05caaedaf Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 19 Jun 2024 21:14:40 +0200 Subject: [PATCH 03/22] fix: add path to Nim to env --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 1547fd9..7f93ba4 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -139,7 +139,7 @@ jobs: curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz ./nimble install nim - echo '${{ github.workspace }}/nim/bin' >> $GITHUB_PATH + echo '$(./nimble path nim)/bin' >> $GITHUB_PATH - name: Run tests run: | From 0d37f8364d2a50e22a212c4f2f84f90744453464 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 19 Jun 2024 21:17:58 +0200 Subject: [PATCH 04/22] fix: syntax for writing to GITHUB_PATH --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 7f93ba4..c3ceb90 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -139,7 +139,7 @@ jobs: curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz ./nimble install nim - echo '$(./nimble path nim)/bin' >> $GITHUB_PATH + echo $(./nimble path nim)/bin >> $GITHUB_PATH - name: Run tests run: | From b84592870e5efb4aea35e4d90e365706b867a9e7 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 19 Jun 2024 21:31:12 +0200 Subject: [PATCH 05/22] fix: check GITHUB_PATH --- .github/workflows/ci-test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index c3ceb90..43bc832 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -140,6 +140,7 @@ jobs: tar xvfz nimble-linux_x64.tar.gz ./nimble install nim echo $(./nimble path nim)/bin >> $GITHUB_PATH + echo $GITHUB_PATH - name: Run tests run: | @@ -147,6 +148,7 @@ jobs: # https://github.com/status-im/nimbus-eth2/issues/3121 export NIMFLAGS="-d:nimRawSetjmp" fi + echo $GITHUB_PATH nim --version nimble --version nimble install -y --depsOnly From baecadaed7ddd89f4d9e4477c388467b35717dda Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 19 Jun 2024 21:43:26 +0200 Subject: [PATCH 06/22] fix: debug GITHUB_PATH --- .github/workflows/ci-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 43bc832..eb387aa 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -139,8 +139,8 @@ jobs: curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz ./nimble install nim + echo $(./nimble path nim)/bin echo $(./nimble path nim)/bin >> $GITHUB_PATH - echo $GITHUB_PATH - name: Run tests run: | @@ -148,7 +148,7 @@ jobs: # https://github.com/status-im/nimbus-eth2/issues/3121 export NIMFLAGS="-d:nimRawSetjmp" fi - echo $GITHUB_PATH + echo $PATH nim --version nimble --version nimble install -y --depsOnly From a02851870cf07b5cb785f19f35cc15d26129a0e0 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 19 Jun 2024 22:01:19 +0200 Subject: [PATCH 07/22] fix: check nin file exists --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index eb387aa..614aeb5 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -149,6 +149,7 @@ jobs: export NIMFLAGS="-d:nimRawSetjmp" fi echo $PATH + ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim nim --version nimble --version nimble install -y --depsOnly From ca27bb219778a4e8b07a721b89ac4dde79032107 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 19:51:43 +0200 Subject: [PATCH 08/22] test: check versions only --- .github/workflows/ci-test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 614aeb5..53f453e 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -152,7 +152,7 @@ jobs: ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim nim --version nimble --version - nimble install -y --depsOnly - rm -f nimble.lock - env NIMLANG=c nimble test - env NIMLANG=cpp nimble test +# nimble install -y --depsOnly +# rm -f nimble.lock +# env NIMLANG=c nimble test +# env NIMLANG=cpp nimble test From de03d15d0c0a653a3c4a41f310d33ab5da2c5ea6 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:06:59 +0200 Subject: [PATCH 09/22] test: reduce to path info --- .github/workflows/ci-test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 53f453e..70e8f63 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -144,14 +144,14 @@ jobs: - name: Run tests run: | - if [[ "${{ matrix.target.os }}" == "windows" ]]; then - # https://github.com/status-im/nimbus-eth2/issues/3121 - export NIMFLAGS="-d:nimRawSetjmp" - fi +# if [[ "${{ matrix.target.os }}" == "windows" ]]; then +# # https://github.com/status-im/nimbus-eth2/issues/3121 +# export NIMFLAGS="-d:nimRawSetjmp" +# fi echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim - nim --version - nimble --version +# nim --version +# nimble --version # nimble install -y --depsOnly # rm -f nimble.lock # env NIMLANG=c nimble test From db92caef48b287d73076a0a67b8060b7dc734fa9 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:07:56 +0200 Subject: [PATCH 10/22] fix: syntax err --- .github/workflows/ci-test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 70e8f63..46683a6 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -144,10 +144,6 @@ jobs: - name: Run tests run: | -# if [[ "${{ matrix.target.os }}" == "windows" ]]; then -# # https://github.com/status-im/nimbus-eth2/issues/3121 -# export NIMFLAGS="-d:nimRawSetjmp" -# fi echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim # nim --version From 6cb6459180245ddd788fb80afb6d915451cace89 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:28:06 +0200 Subject: [PATCH 11/22] test: version on absolute path --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 46683a6..ddd20c9 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -146,6 +146,7 @@ jobs: run: | echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim + /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim --version # nim --version # nimble --version # nimble install -y --depsOnly From c509c77c0f515df2cc06adaac7b1b62bc0fa0b45 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:39:58 +0200 Subject: [PATCH 12/22] test: version on relative path --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index ddd20c9..6b04a31 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -147,7 +147,7 @@ jobs: echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim --version -# nim --version + nim --version # nimble --version # nimble install -y --depsOnly # rm -f nimble.lock From 8c2f640f4789fdaff93fe24f909ea4a4217ad38e Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:56:52 +0200 Subject: [PATCH 13/22] test: nimble version on relative path --- .github/workflows/ci-test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 6b04a31..74125c8 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -147,8 +147,8 @@ jobs: echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim --version - nim --version -# nimble --version +# nim --version + nimble --version # nimble install -y --depsOnly # rm -f nimble.lock # env NIMLANG=c nimble test From 4f2dc3ad547466e3792542392f1b7fcf993f437a Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 20:57:58 +0200 Subject: [PATCH 14/22] fix: nimble version on relative path --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 74125c8..cfeb3df 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -147,8 +147,8 @@ jobs: echo $PATH ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim --version -# nim --version nimble --version +# nim --version # nimble install -y --depsOnly # rm -f nimble.lock # env NIMLANG=c nimble test From 167c4b5b3148155f73f98086b0673d560c199a5e Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 24 Jun 2024 22:10:49 +0200 Subject: [PATCH 15/22] fix: nim path output --- .github/workflows/ci-test.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index cfeb3df..8508fbe 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -139,17 +139,14 @@ jobs: curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz ./nimble install nim - echo $(./nimble path nim)/bin - echo $(./nimble path nim)/bin >> $GITHUB_PATH + echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests run: | echo $PATH - ls -la /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim - /home/runner/.nimble/pkgs2/nim-2.0.6-c43fce95a734c8ad12475e1ff10f522b408fbcfa/bin/nim --version + nim --version nimble --version -# nim --version -# nimble install -y --depsOnly -# rm -f nimble.lock -# env NIMLANG=c nimble test -# env NIMLANG=cpp nimble test + nimble install -y --depsOnly + rm -f nimble.lock + env NIMLANG=c nimble test + env NIMLANG=cpp nimble test From 9bcb7a3d11878cfaf9e7a4849447df63ba04cc4e Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Jun 2024 15:50:31 +0200 Subject: [PATCH 16/22] test: switch to Nimble setup --- .github/workflows/ci-test.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 8508fbe..648c7dd 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -138,15 +138,12 @@ jobs: run: | curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz - ./nimble install nim - echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH + ./nimble setup - name: Run tests run: | - echo $PATH nim --version nimble --version - nimble install -y --depsOnly rm -f nimble.lock env NIMLANG=c nimble test env NIMLANG=cpp nimble test From 4c2b5dae1c595d1ffaafd4b50ebd3c8a8790e9e5 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Jun 2024 15:59:03 +0200 Subject: [PATCH 17/22] test: update PATH --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 648c7dd..2e49dc9 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -139,6 +139,7 @@ jobs: curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz ./nimble setup + echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests run: | From f60a68f2d9a5d06dcc0109cdaea5079b69a9c70a Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Jun 2024 19:49:00 +0200 Subject: [PATCH 18/22] test: install old Nim 1.6.20 --- .github/workflows/ci-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 2e49dc9..389e684 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -138,13 +138,14 @@ jobs: run: | curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz - ./nimble setup + ./nimble install nim@1.6.20 echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests run: | nim --version nimble --version + nimble install -y --depsOnly rm -f nimble.lock env NIMLANG=c nimble test env NIMLANG=cpp nimble test From 894921586aedca06f56d48af5a2bb3786cac17b2 Mon Sep 17 00:00:00 2001 From: Roman Date: Tue, 25 Jun 2024 20:04:51 +0200 Subject: [PATCH 19/22] test: install the newest Nim 2.1.1 --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 389e684..adb445e 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -138,7 +138,7 @@ jobs: run: | curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz - ./nimble install nim@1.6.20 + ./nimble install nim@2.1.1 echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests From 5331b202d4d24bd9a6706b0a4ec8c2e1cfabb9f9 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 26 Jun 2024 14:49:38 +0200 Subject: [PATCH 20/22] test: install older 1.6 with partial version --- .github/workflows/ci-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index adb445e..4f537ec 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -138,7 +138,7 @@ jobs: run: | curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz tar xvfz nimble-linux_x64.tar.gz - ./nimble install nim@2.1.1 + ./nimble install nim@1.6 echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests From a8887e542cdde760235eb8d54d2a0f22c2874379 Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 27 Jun 2024 14:37:55 +0200 Subject: [PATCH 21/22] test: time Nim installation --- .github/workflows/ci-test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 4f537ec..2cf8b46 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -136,9 +136,15 @@ jobs: - name: Download Nimble and install Nim run: | + start=$(date +%s) curl -O -L -s -S https://github.com/nim-lang/nimble/releases/download/latest/nimble-linux_x64.tar.gz + end=$(date +%s) + echo "Nimble download took: $(($end-$start)) seconds" tar xvfz nimble-linux_x64.tar.gz - ./nimble install nim@1.6 + start=$(date +%s) + ./nimble install nim + end=$(date +%s) + echo "Nim installation took: $(($end-$start)) seconds" echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests From f65376b7a4a17ced951da8f93b526e875786667e Mon Sep 17 00:00:00 2001 From: Roman Date: Thu, 27 Jun 2024 15:18:28 +0200 Subject: [PATCH 22/22] test: time Nimble setup installation --- .github/workflows/ci-test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 2cf8b46..1aacf29 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -142,16 +142,15 @@ jobs: echo "Nimble download took: $(($end-$start)) seconds" tar xvfz nimble-linux_x64.tar.gz start=$(date +%s) - ./nimble install nim + ./nimble setup end=$(date +%s) - echo "Nim installation took: $(($end-$start)) seconds" + echo "Nimble setup took: $(($end-$start)) seconds" echo $(./nimble path nim | tail -n 1)/bin >> $GITHUB_PATH - name: Run tests run: | nim --version nimble --version - nimble install -y --depsOnly rm -f nimble.lock env NIMLANG=c nimble test env NIMLANG=cpp nimble test