nim-webrtc/.github/workflows/ci.yml

74 lines
1.6 KiB
YAML
Raw Permalink Normal View History

2023-01-10 14:05:25 +00:00
name: CI
on:
push:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
target:
- os: linux
cpu: amd64
- os: linux
cpu: i386
- os: macos
cpu: amd64
- os: windows
cpu: amd64
2024-03-07 15:10:58 +00:00
nim: [1.6.16, devel]
2023-01-10 14:05:25 +00:00
include:
- target:
os: linux
2024-08-23 10:18:05 +00:00
builder: ubuntu-22.04
2023-01-10 14:05:25 +00:00
shell: bash
- target:
os: macos
2024-08-23 10:18:05 +00:00
builder: macos-13
2023-01-10 14:05:25 +00:00
shell: bash
- target:
os: windows
2024-08-23 10:18:05 +00:00
builder: windows-2022
2023-01-10 14:05:25 +00:00
shell: msys2 {0}
defaults:
run:
shell: ${{ matrix.shell }}
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (Nim ${{ matrix.nim }})'
runs-on: ${{ matrix.builder }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
2024-04-02 12:04:14 +00:00
- name: MSYS2 (Windows amd64)
if: ${{ matrix.target.os == 'windows' && matrix.target.cpu == 'amd64' }}
uses: msys2/setup-msys2@v2
with:
path-type: inherit
install: >-
base-devel
git
mingw-w64-x86_64-toolchain
2023-01-10 14:05:25 +00:00
- uses: iffy/install-nim@v3
with:
version: ${{ matrix.nim }}
- name: Install deps
run: |
nimble install -dy
- name: Run tests
run: |
nim --version
nimble --version
feat: stun protocol & stun connection (#9) * feat: stun protocol & stun connection * rename getResponse into getPong and test it * add Username attribute * genUfrag procedure * Add generateRandomSeq to generate a transaction id * First draft of getPing * Use UdpPacketInfo tuple * Change closing debug message * Add proper exception tracking * Change StunConn init behavior * Add a last UdpPacketInfo * Add comments * refactor: change connection management * Add a lot of comments/Finish refactor * Add copyright headers on test files * simplify newRng proc for testing * add exception tracking for stun transport asynchronous proc * remove ping/pong example building in the ci * rename getPong test * remove maximum connections * Add ICE stun attributes * Stun rework * feat: getBindingRequest * fix oversight & add comments * Test rework * Adds continue in stunMessageHandler loop * remove `doAssert(false)` from Stun.connect() * Update TODO * fix comment typo * fix: test lacking precision * docs: add StunConn.init() comments * chore: make teststun more readable * feat: use withValue instead of getOrDefault in Stun.connect() * feat: add check if Fingerprint is valid * refactor: getAttribute and username/password provider * chore: removes genUfrag, should be in libp2p instead * chore: remove redundant test * chore: change warn log to debug * docs: update getBindingResponse/Request comments * chore: renames init into new * fix: compilation warnings * chore: change closed line to be at the end of the close procedure * feat: limit queues size
2024-05-24 12:14:30 +00:00
nimble test