Skip to content

Commit

Permalink
update ci.yml to test Nim 2.2 (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
narimiran authored Sep 11, 2024
1 parent 63bcc29 commit 179f81d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,33 +16,37 @@ 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
builder: ubuntu-latest
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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion websock.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 179f81d

Please sign in to comment.