Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build and test

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dc: [dmd-latest, ldc-latest]
exclude:
- os: macos-latest
dc: dmd-latest
- os: windows-latest
dc: ldc-latest

runs-on: ${{ matrix.os }}

steps:
- name: Checkout Source
uses: actions/checkout@v6

- name: D Compiler Installation
uses: dlang-community/setup-dlang@v2
with:
compiler: ${{ matrix.dc }}

- name: Build and Test
run: |
dub -q test

- name: Build Demos
shell: bash
run: |
for demo in clipboard colors hello mouse styles;
do
cd demos/$demo
dub build || exit 1
cd ../..
done
32 changes: 0 additions & 32 deletions .github/workflows/dmd.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/ldc.yml

This file was deleted.