update ci.yml to test Nim 2.2 (#163)

This commit is contained in:
Miran 2024-09-11 07:27:27 +02:00 committed by GitHub
parent 63bcc2902d
commit 179f81deda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 10 deletions

View File

@ -16,21 +16,19 @@ jobs:
build:
strategy:
fail-fast: false
max-parallel: 20
matrix:
target:
# Unit tests
- os: linux
cpu: amd64
- os: linux
cpu: i386
- os: macos
cpu: amd64
- os: macos
cpu: arm64
- os: windows
cpu: amd64
#- os: windows
#cpu: i386
branch: [version-1-6, version-2-0, devel]
branch: [version-2-0, version-2-2, devel]
include:
- target:
os: linux
@ -38,11 +36,17 @@ jobs:
shell: bash
- target:
os: macos
cpu: amd64
builder: macos-13
shell: bash
- target:
os: macos
cpu: arm64
builder: macos-latest
shell: bash
- target:
os: windows
builder: windows-2019
builder: windows-latest
shell: msys2 {0}
defaults:
@ -127,6 +131,8 @@ jobs:
run: |
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
PLATFORM=x64
elif [[ '${{ matrix.target.cpu }}' == 'arm64' ]]; then
PLATFORM=arm64
else
PLATFORM=x86
fi
@ -263,7 +269,7 @@ jobs:
kill $server
- name: Upload Autobahn result
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: autobahn-report
path: ./autobahn/reports
@ -280,13 +286,13 @@ jobs:
steps:
- name: Download Autobahn reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: autobahn-report
path: ./autobahn_reports
- name: Deploy autobahn report.
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./autobahn_reports

View File

@ -29,7 +29,7 @@ task test, "run tests":
nimFlags = envNimFlags &
" --verbosity:0 --hints:off --hint:Name:on " &
"--styleCheck:usages --styleCheck:error" &
" -d:chronosStrictException"
" -d:chronosStrictException --mm:refc"
# dont't need to run it, only want to test if it is compileable
exec "nim c -c " & nimFlags & " -d:chronicles_log_level=TRACE -d:chronicles_sinks:json --styleCheck:usages --styleCheck:hint ./tests/all_tests"