update ci.yml and be more explicit in .nimble (#80)
Also, use `results` instead of deprecated `stew/results`.
This commit is contained in:
parent
a9687dda1c
commit
2190421e09
|
@ -22,23 +22,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:
|
||||||
|
@ -50,7 +56,7 @@ jobs:
|
||||||
continue-on-error: ${{ matrix.branch == 'devel' }}
|
continue-on-error: ${{ matrix.branch == 'devel' }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install build dependencies (Linux i386)
|
- name: Install build dependencies (Linux i386)
|
||||||
if: runner.os == 'Linux' && matrix.target.cpu == 'i386'
|
if: runner.os == 'Linux' && matrix.target.cpu == 'i386'
|
||||||
|
@ -96,7 +102,7 @@ jobs:
|
||||||
- name: Restore Nim DLLs dependencies (Windows) from cache
|
- name: Restore Nim DLLs dependencies (Windows) from cache
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
id: windows-dlls-cache
|
id: windows-dlls-cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: external/dlls-${{ matrix.target.cpu }}
|
path: external/dlls-${{ matrix.target.cpu }}
|
||||||
key: 'dlls-${{ matrix.target.cpu }}'
|
key: 'dlls-${{ matrix.target.cpu }}'
|
||||||
|
@ -120,6 +126,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
|
||||||
|
|
|
@ -11,6 +11,7 @@ requires "nim >= 1.6.0",
|
||||||
"chronos#head",
|
"chronos#head",
|
||||||
"chronicles",
|
"chronicles",
|
||||||
"metrics",
|
"metrics",
|
||||||
|
"results",
|
||||||
"stew"
|
"stew"
|
||||||
|
|
||||||
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
|
let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
|
||||||
|
@ -26,10 +27,10 @@ let cfg =
|
||||||
proc build(args, path: string) =
|
proc build(args, path: string) =
|
||||||
exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path
|
exec nimc & " " & lang & " " & cfg & " " & flags & " " & args & " " & path
|
||||||
|
|
||||||
proc run(args, path: string) =
|
proc run(path: string) =
|
||||||
build args & " -r", path
|
build " --mm:refc -r", path
|
||||||
if (NimMajor, NimMinor) > (1, 6):
|
if (NimMajor, NimMinor) > (1, 6):
|
||||||
build args & " --mm:refc -r", path
|
build " --mm:orc -r", path
|
||||||
|
|
||||||
task test, "Runs rest tests":
|
task test, "Runs rest tests":
|
||||||
run "", "tests/testall"
|
run "tests/testall"
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import chronos/apps/http/[httpcommon, httptable]
|
import chronos/apps/http/[httpcommon, httptable]
|
||||||
import stew/[results, byteutils], httputils
|
import results
|
||||||
|
import stew/[byteutils], httputils
|
||||||
|
|
||||||
export results, httputils, httptable
|
export results, httputils, httptable
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
import std/options
|
import std/options
|
||||||
import chronos, chronos/apps/http/shttpserver
|
import chronos, chronos/apps/http/shttpserver
|
||||||
import chronicles
|
import chronicles
|
||||||
import stew/results
|
import results
|
||||||
import "."/[route, common, segpath, servercommon, serverprivate, agent]
|
import "."/[route, common, segpath, servercommon, serverprivate, agent]
|
||||||
export options, chronos, shttpserver, servercommon, chronicles, agent
|
export options, chronos, shttpserver, servercommon, chronicles, agent
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import std/[uri, strutils]
|
import std/[uri, strutils]
|
||||||
import stew/[bitops2, results]
|
import stew/bitops2
|
||||||
|
import results
|
||||||
import chronos/apps
|
import chronos/apps
|
||||||
import "."/common
|
import "."/common
|
||||||
export common, apps
|
export common, apps
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
import std/[options, json, strutils]
|
import std/[options, json, strutils]
|
||||||
import chronos, chronos/apps/http/httpserver
|
import chronos, chronos/apps/http/httpserver
|
||||||
import chronicles
|
import chronicles
|
||||||
import stew/results
|
import results
|
||||||
import "."/[route, common, segpath, servercommon, serverprivate, agent]
|
import "."/[route, common, segpath, servercommon, serverprivate, agent]
|
||||||
export options, chronos, httpserver, servercommon, chronicles, agent
|
export options, chronos, httpserver, servercommon, chronicles, agent
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{.push raises: [].}
|
{.push raises: [].}
|
||||||
|
|
||||||
import std/[options, strutils]
|
import std/[options, strutils]
|
||||||
import chronos, chronicles, stew/[base10, results]
|
import chronos, chronicles, stew/base10, results
|
||||||
import "."/[route, common, segpath, servercommon]
|
import "."/[route, common, segpath, servercommon]
|
||||||
|
|
||||||
when defined(metrics):
|
when defined(metrics):
|
||||||
|
|
Loading…
Reference in New Issue