diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f9d708..4f97b1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,21 +24,19 @@ jobs: cpu: amd64 - os: windows cpu: amd64 - #- os: windows - #cpu: i386 branch: [version-1-6, version-2-0, devel] include: - target: os: linux - builder: ubuntu-20.04 + builder: ubuntu-latest shell: bash - target: os: macos - builder: macos-12 + builder: macos-latest shell: bash - target: os: windows - builder: windows-2019 + builder: windows-latest shell: msys2 {0} defaults: @@ -50,7 +48,7 @@ jobs: continue-on-error: ${{ matrix.branch == 'devel' }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: true @@ -98,7 +96,7 @@ jobs: - name: Restore Nim DLLs dependencies (Windows) from cache if: runner.os == 'Windows' id: windows-dlls-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: external/dlls-${{ matrix.target.cpu }} key: 'dlls-${{ matrix.target.cpu }}' diff --git a/blscurve.nimble b/blscurve.nimble index a0d683b..ee78951 100644 --- a/blscurve.nimble +++ b/blscurve.nimble @@ -29,9 +29,9 @@ proc build(args, path: string) = exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path proc run(args, path: string) = - build args & " -r", path + build args & " --mm:refc -r", path if (NimMajor, NimMinor) > (1, 6): - build args & " --mm:refc -r", path + build args & " --mm:orc -r", path ### tasks task test, "Run all tests": @@ -55,7 +55,7 @@ task test, "Run all tests": when (defined(windows) and sizeof(pointer) == 4): # Eth2 vectors without batch verify - run "-d:BLS_FORCE_BACKEND=blst", "tests/eth2_vectors.nim" + run "--threads:off -d:BLS_FORCE_BACKEND=blst", "tests/eth2_vectors.nim" else: run "--threads:on -d:BLS_FORCE_BACKEND=blst", "tests/eth2_vectors.nim"