mirror of https://github.com/vacp2p/nim-quic.git
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 30
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform:
|
|
- os: linux
|
|
runner: ubuntu-latest
|
|
cpu: amd64
|
|
shell: bash
|
|
- os: linux
|
|
runner: ubuntu-latest
|
|
cpu: i386
|
|
shell: bash
|
|
- os: macos
|
|
runner: macos-latest
|
|
cpu: amd64
|
|
shell: bash
|
|
- os: windows
|
|
runner: windows-latest
|
|
cpu: amd64
|
|
shell: msys2 {0}
|
|
nim:
|
|
- branch: version-1-6
|
|
- branch: version-2-0
|
|
|
|
name: '${{ matrix.platform.os }}-${{ matrix.platform.cpu }} (Nim ${{ matrix.nim.branch }})'
|
|
runs-on: ${{ matrix.platform.runner }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Nim
|
|
uses: vacp2p/nim-libp2p/.github/actions/install_nim@master
|
|
with:
|
|
os: ${{ matrix.platform.os }}
|
|
cpu: ${{ matrix.platform.cpu }}
|
|
shell: ${{ matrix.platform.shell }}
|
|
nim_branch: ${{ matrix.nim.branch }}
|
|
|
|
- name: Install dependencies
|
|
run: nimble install -y
|
|
|
|
- name: Test
|
|
run: nimble test -y
|