Skip to content

Fix clean task on windows #181

Fix clean task on windows

Fix clean task on windows #181

Workflow file for this run

name: wgpu-d CI
on: push
# schedule:
# - cron: '0 0 * * SUN'
jobs:
test:
name: Tests
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
# TODO: Diable this when merging to main
experimental: [true]
os: [ubuntu-latest, macos-12, windows-latest]
# Test against the last two LDC releases
compiler: [ldc-1.37.0, ldc-1.38.0]
# TODO: compiler: [ldc-1.37.0, ldc-1.38.0, dmd-2.107.0]
exclude:
# FIXME: https://github.com/chances/wgpu-d/actions/runs/9726758262/job/26845551536#step:5:26
# FIXME: This is some linking issue in DMD that's not present in LDC. ImportC doesn't emit `struct` constructors?
# Undefined symbols for architecture x86_64:
# "__C.WGPURenderPassDescriptor.__initwgpu_bindings", referenced from:
# @trusted wgpu.api.RenderPass wgpu.api.CommandEncoder.beginRenderPass(const(__C.WGPURenderPassDescriptor)) in wgpu-d-test-unittest.o
- compiler: dmd-2.107.0
- compiler: dmd-2.108.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install D compiler
uses: dlang-community/setup-dlang@v1
with:
compiler: ${{ matrix.compiler }}
# - name: Install *nix Dependencies
# if: runner.os == 'Linux'
# run: sudo apt-get install --quiet -y libglfw3 libglfw3-dev
- name: Lint
run: dub run dscanner -- lint -f github source
# - name: Integration Test
# run: dub build wgpu-d:headless
- name: Test
run: make cover
- name: Upload Coverage to Codecov
if: success()
run: bash <(curl -s https://codecov.io/bash)