fixed prepWritev #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
name: "Build and test on ${{ matrix.dc }}" | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
dc: [dmd-latest, ldc-latest, dmd-2.094.2, ldc-1.24.0, dmd-2.091.1] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install D compiler | |
uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: ${{ matrix.dc }} | |
- name: "Tested on" | |
run: uname -a | |
- id: build | |
name: "Test build" | |
run: dub build | |
- id: buildBC | |
name: "Test build with betterC" | |
run: dub build -c=betterC | |
- name: "Run unittests" | |
if: steps.build.outcome == 'success' | |
run: dub test -- -t 1 -v | |
- name: "Run unittests with betterC" | |
if: steps.buildBC.outcome == 'success' | |
run: dub test -c=betterC | |
- name: Upload codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.dc == 'dmd-latest' && steps.build.outcome == 'success' | |
env: | |
COVERAGE: true | |
run: | | |
dub test -b=unittest-cov -- -t 1 -v || true | |
bash <(curl -s https://codecov.io/bash) |