Skip to content

Make pipeName be WideCStringObj so the data isn't deleted too early #30

Make pipeName be WideCStringObj so the data isn't deleted too early

Make pipeName be WideCStringObj so the data isn't deleted too early #30

Workflow file for this run

name: asynctools
on: [push, pull_request]
jobs:
build:
strategy:
fail-fast: false
max-parallel: 20
matrix:
branch: [master]
target:
- os: linux
cpu: amd64
nim_branch: devel
- os: linux
cpu: amd64
nim_branch: v1.2.12
- os: linux
cpu: amd64
nim_branch: v1.4.8
- os: linux
cpu: i386
nim_branch: devel
- os: linux
cpu: i386
nim_branch: v1.2.12
- os: linux
cpu: i386
nim_branch: v1.4.8
- os: macos
cpu: amd64
nim_branch: devel
- os: macos
cpu: amd64
nim_branch: v1.2.12
- os: macos
cpu: amd64
nim_branch: v1.4.8
- os: windows
cpu: amd64
nim_branch: devel
- os: windows
cpu: amd64
nim_branch: v1.2.12
- os: windows
cpu: amd64
nim_branch: v1.4.8
- os: windows
cpu: i386
nim_branch: devel
- os: windows
cpu: i386
nim_branch: v1.2.12
- os: windows
cpu: i386
nim_branch: v1.4.8
include:
- target:
os: linux
builder: ubuntu-18.04
- target:
os: macos
builder: macos-10.15
- target:
os: windows
builder: windows-2019
name: '${{ matrix.target.os }}-${{ matrix.target.cpu }}-nim-${{ matrix.target.nim_branch }} (${{ matrix.branch }})'
runs-on: ${{ matrix.builder }}
env:
NIM_DIR: nim-${{ matrix.target.nim_branch }}-${{ matrix.target.cpu }}
NIM_BRANCH: ${{ matrix.target.nim_branch }}
NIM_ARCH: ${{ matrix.target.cpu }}
steps:
- name: Checkout asynctools
uses: actions/checkout@v2
with:
path: asynctools
submodules: false
- name: Restore MinGW-W64 (Windows) from cache
if: runner.os == 'Windows'
id: windows-mingw-cache
uses: actions/cache@v2
with:
path: external/mingw-${{ matrix.target.cpu }}
key: 'mingw-${{ matrix.target.cpu }}'
- name: Restore Nim DLLs dependencies (Windows) from cache
if: runner.os == 'Windows'
id: windows-dlls-cache
uses: actions/cache@v2
with:
path: external/dlls-${{ matrix.target.cpu }}
key: 'dlls-${{ matrix.target.cpu }}'
- name: Install MinGW64 dependency (Windows)
if: >
steps.windows-mingw-cache.outputs.cache-hit != 'true' &&
runner.os == 'Windows'
shell: bash
run: |
mkdir -p external
if [[ '${{ matrix.target.cpu }}' == 'amd64' ]]; then
MINGW_URL="https://github.com/brechtsanders/winlibs_mingw/releases/download/11.1.0-12.0.0-9.0.0-r2/winlibs-x86_64-posix-seh-gcc-11.1.0-mingw-w64-9.0.0-r2.7z"
ARCH=64
else
MINGW_URL="https://github.com/brechtsanders/winlibs_mingw/releases/download/11.1.0-12.0.0-9.0.0-r2/winlibs-i686-posix-dwarf-gcc-11.1.0-mingw-w64-9.0.0-r2.7z"
ARCH=32
fi
curl -L "$MINGW_URL" -o "external/mingw-${{ matrix.target.cpu }}.7z"
7z x -y "external/mingw-${{ matrix.target.cpu }}.7z" -oexternal/
mv external/mingw$ARCH external/mingw-${{ matrix.target.cpu }}
- name: Install DLLs dependencies (Windows)
if: >
steps.windows-dlls-cache.outputs.cache-hit != 'true' &&
runner.os == 'Windows'
shell: bash
run: |
mkdir -p external
curl -L "https://nim-lang.org/download/windeps.zip" -o external/windeps.zip
7z x -y external/windeps.zip -oexternal/dlls-${{ matrix.target.cpu }}
- name: Path to cached dependencies (Windows)
if: >
runner.os == 'Windows'
shell: bash
run: |
echo '${{ github.workspace }}'"/external/mingw-${{ matrix.target.cpu }}/bin" >> $GITHUB_PATH
echo '${{ github.workspace }}'"/external/dlls-${{ matrix.target.cpu }}" >> $GITHUB_PATH
- name: Restore Nim from cache
if: >
steps.nim-compiler-cache.outputs.cache-hit != 'true' &&
matrix.target.nim_branch != 'devel'
id: nim-compiler-cache
uses: actions/cache@v2
with:
path: '${{ github.workspace }}/nim-${{ matrix.target.nim_branch }}-${{ matrix.target.cpu }}'
key: 'nim-${{ matrix.target.cpu }}-${{ matrix.target.nim_branch }}'
- name: Build Nim and associated tools
shell: bash
run: |
pwd
ls -la
if [[ '${{ matrix.target.os }}' == 'windows' ]]; then
asynctools/tests/bootstrap.bat
else
asynctools/tests/bootstrap.sh
fi
- name: Setup environment
shell: bash
run: |
echo '${{ github.workspace }}'"/${NIM_DIR}/bin" >> $GITHUB_PATH
- name: Run asynctools tests
shell: bash
working-directory: asynctools
run: |
nimble install -y
nimble test