Skip to content

fix

fix #253

Workflow file for this run

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
nim: [1.6.16, devel]
include:
#- target:
# os: linux
# builder: ubuntu-22.04
# shell: bash
#- target:
# os: macos
# builder: macos-13
# shell: bash
- target:
os: windows
builder: windows-2022
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
- 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
- uses: iffy/install-nim@v3
with:
version: ${{ matrix.nim }}
- name: Install deps
run: |
nimble install -dy
# git clone https://github.com/sctplab/usrsctp.git
# cd usrsctp
# mkdir cmake_install
# mkdir cmake_build
# git checkout 01cc4e042e2235b29d9d489d89728a6f9ac063ed
# cmake --version
# ls -la
# cmake -S . -B cmake_build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -Dsctp_debug=ON -Dsctp_invariants=ON -Dsctp_inet6=ON -Dsctp_inet=ON -Dsctp_build_programs=ON -Dsctp_build_fuzzer=OFF -DCMAKE_INSTALL_PREFIX=cmake_install -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_SYSTEM_PROCESSOR=x86_64 .
# echo "install done"
# cmake --build cmake_build --parallel 2 --config Debug --target install --clean-first --verbose
# cd ..
- name: Run tests
run: |
nim --version
nimble --version
nimble test