Skip to content

Commit

Permalink
update ci.yml and be more explicit in .nimble
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran committed Jun 25, 2024
1 parent f29698d commit f9748e3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

Expand Down Expand Up @@ -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 }}'
Expand Down
6 changes: 3 additions & 3 deletions blscurve.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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"

Expand Down

0 comments on commit f9748e3

Please sign in to comment.