mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-01-08 16:33:10 +00:00
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 90
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target:
|
|
- os: linux
|
|
cpu: amd64
|
|
- os: linux
|
|
cpu: i386
|
|
- os: macos
|
|
cpu: amd64
|
|
- os: windows
|
|
cpu: amd64
|
|
#- os: windows
|
|
#cpu: i386
|
|
nim: [stable]
|
|
include:
|
|
- target:
|
|
os: linux
|
|
builder: ubuntu-20.04
|
|
shell: bash
|
|
- target:
|
|
os: macos
|
|
builder: macos-10.15
|
|
shell: bash
|
|
- target:
|
|
os: windows
|
|
builder: windows-2019
|
|
shell: msys2 {0}
|
|
|
|
defaults:
|
|
run:
|
|
shell: ${{ matrix.shell }}
|
|
|
|
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }} (Nim ${{ matrix.branch }})'
|
|
runs-on: ${{ matrix.builder }}
|
|
continue-on-error: ${{ matrix.branch == 'version-1-6' || matrix.branch == 'devel' }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: iffy/install-nim@v3
|
|
with:
|
|
version: ${{ matrix.nim }}
|
|
- name: Build
|
|
run: nimble install -y
|
|
- name: Test
|
|
run: nimble test -y
|