Skip to content

Refactor the StopToken/StopCallback and StopSource #504

Refactor the StopToken/StopCallback and StopSource

Refactor the StopToken/StopCallback and StopSource #504

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
test:
name: Dub Tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
dc: [dmd-latest, ldc-latest, dmd-2.105.3, ldc-1.35.0]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install D compile
uses: dlang-community/setup-dlang@v1.3.0
with:
compiler: ${{ matrix.dc }}
- uses: actions/cache@v3
with:
path: ~/.dub
key: ${{ runner.os }}-dub-${{ hashFiles('**/dub.selections.json') }}
restore-keys: |
${{ runner.os }}-dub-
- name: Install binutils
if: runner.os == 'Linux'
run: |
sudo apt install -y binutils-gold
sudo update-alternatives --install "/usr/bin/ld" "ld" "/usr/bin/ld.gold" 20
sudo update-alternatives --config ld
ld --version
- name: Run tests linux
if: runner.os == 'Linux'
run: |
ulimit -c unlimited
echo "$PWD/core-dump/corefile-%e-%p-%t" | sudo tee /proc/sys/kernel/core_pattern
mkdir core-dump
sysctl kernel.core_pattern
ulimit -a
dub -c=unittest-release
- name: Run asan tests linux
if: runner.os == 'Linux' && startsWith(matrix.dc, 'ldc')
run: |
sudo apt install -y llvm # provides executable `llvm-symbolizer`
LSAN_OPTIONS=suppressions=lsan.supp dub -c=unittest-asan
- name: Run tests windows
if: runner.os != 'Linux'
run: |
dub -c=unittest-release
- uses: actions/upload-artifact@v2
if: ${{ failure() && runner.os == 'Linux' }}
with:
name: core-dump
path: |
./core-dump/*
./concurrency
- name: Build
run: dub build