update ci.yml and be more explicit in .nimble (#27)
* update ci.yml and be more explicit in .nimble * remove `--warnings:off`
This commit is contained in:
parent
2f5cee7bea
commit
c0cc7da5fc
|
@ -18,23 +18,29 @@ jobs:
|
||||||
cpu: i386
|
cpu: i386
|
||||||
- os: macos
|
- os: macos
|
||||||
cpu: amd64
|
cpu: amd64
|
||||||
|
- os: macos
|
||||||
|
cpu: arm64
|
||||||
- os: windows
|
- os: windows
|
||||||
cpu: amd64
|
cpu: amd64
|
||||||
- os: windows
|
|
||||||
cpu: i386
|
|
||||||
branch: [version-1-6, version-2-0, devel]
|
branch: [version-1-6, version-2-0, devel]
|
||||||
include:
|
include:
|
||||||
- target:
|
- target:
|
||||||
os: linux
|
os: linux
|
||||||
builder: ubuntu-20.04
|
builder: ubuntu-latest
|
||||||
shell: bash
|
shell: bash
|
||||||
- target:
|
- target:
|
||||||
os: macos
|
os: macos
|
||||||
builder: macos-12
|
cpu: amd64
|
||||||
|
builder: macos-13
|
||||||
|
shell: bash
|
||||||
|
- target:
|
||||||
|
os: macos
|
||||||
|
cpu: arm64
|
||||||
|
builder: macos-latest
|
||||||
shell: bash
|
shell: bash
|
||||||
- target:
|
- target:
|
||||||
os: windows
|
os: windows
|
||||||
builder: windows-2019
|
builder: windows-latest
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
@ -117,6 +123,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
|
||||||
PLATFORM=x64
|
PLATFORM=x64
|
||||||
|
elif [[ '${{ matrix.target.cpu }}' == 'arm64' ]]; then
|
||||||
|
PLATFORM=arm64
|
||||||
else
|
else
|
||||||
PLATFORM=x86
|
PLATFORM=x86
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -20,15 +20,19 @@ requires "nim >= 1.6.0"
|
||||||
requires "stew >= 0.1.0"
|
requires "stew >= 0.1.0"
|
||||||
requires "unittest2"
|
requires "unittest2"
|
||||||
|
|
||||||
|
let cfg =
|
||||||
|
" --outdir:build -f -c --hints:off" &
|
||||||
|
" --styleCheck:usages --styleCheck:error --skipParentCfg" &
|
||||||
|
" -d:release -d:kzgExternalBlstNoSha256 -d:kzgExternalBlst"
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
proc test(args, path: string) =
|
proc test(args, path: string) =
|
||||||
if not dirExists "build":
|
if not dirExists "build":
|
||||||
mkDir "build"
|
mkDir "build"
|
||||||
exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args &
|
exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " &
|
||||||
" --outdir:build -f -c --hints:off --warnings:off" &
|
cfg & " " & args & " " & path
|
||||||
" --styleCheck:usages --styleCheck:error --skipParentCfg " & path
|
|
||||||
|
|
||||||
task test, "Run all tests":
|
task test, "Run all tests":
|
||||||
test "-d:release -d:kzgExternalBlstNoSha256 -d:kzgExternalBlst", "tests/test_all"
|
test "--mm:refc", "tests/test_all"
|
||||||
if (NimMajor, NimMinor) > (1, 6):
|
if (NimMajor, NimMinor) > (1, 6):
|
||||||
test "-d:release -d:kzgExternalBlstNoSha256 -d:kzgExternalBlst --mm:refc", "tests/test_all"
|
test "--mm:orc", "tests/test_all"
|
||||||
|
|
Loading…
Reference in New Issue