Skip to content

Add windows, macos, linux build to CI #4

Add windows, macos, linux build to CI

Add windows, macos, linux build to CI #4

Workflow file for this run

# GitHub Actions workflow for building and testing DCMTKcs on push and pull request
name: Build and Test
on:
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
workflow_dispatch:
jobs:
build:
name: Build and Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure CMake
run: |
cmake -S . -B build
- name: Build
run: |
cmake --build build --config Release
- name: Run tests
run: |
ctest --test-dir build --build-config Release --output-on-failure