Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 15 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
name: Github Actions
on: [push, pull_request]
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: nim c src/ws.nim
- run: nim c -r tests/test.nim
- run: nim c tests/chat.nim
- run: nim c tests/chat.nim
- run: nim c tests/echo.nim
- run: nim c tests/sender.nim
- run: nim c tests/sender_3.nim
- run: nim c tests/sender_ping.nim
- run: nim c tests/sender_protocol.nim
- run: nim c tests/sender_wss.nim
- run: nim c tests/welcome.nim
- run: nim c tests/welcome_protocol.nim
- run: nimble install -y jester
- run: nim c tests/jester_test.nim
- uses: actions/checkout@v5
- uses: treeform/setup-nim-action@v6
- name: Install dependencies
shell: bash
run: |
cd ..
nimby install -g "${{ github.event.repository.name }}/${{ github.event.repository.name }}.nimble"
- run: nim r tests/tests.nim
20 changes: 12 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,28 @@ on:
push:
branches:
- master
workflow_dispatch:
permissions:
contents: write
env:
nim-version: 'stable'
nim-src: src/${{ github.event.repository.name }}.nim
deploy-dir: .gh-pages
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ env.nim-version }}
- run: nimble install -Y
- run: nimble doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} ${{ env.nim-src }}
- uses: actions/checkout@v5
- uses: treeform/setup-nim-action@v6
- name: Install dependencies
shell: bash
run: |
cd ..
nimby install -g "${{ github.event.repository.name }}/${{ github.event.repository.name }}.nimble"
- run: nim doc --index:on --project --git.url:https://github.com/${{ github.repository }} --git.commit:master --out:${{ env.deploy-dir }} ${{ env.nim-src }}
- name: "Copy to index.html"
run: cp ${{ env.deploy-dir }}/${{ github.event.repository.name }}.html ${{ env.deploy-dir }}/index.html
- name: Deploy documents
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ env.deploy-dir }}
File renamed without changes.
Loading