Skip to content

Commit 5496dd3

Browse files
committed
Simple build and test workflow added
1 parent b6f6532 commit 5496dd3

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
env:
10+
RAWDEV_BUILD_PATH: ${{ github.workspace }}/build
11+
12+
jobs:
13+
build:
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, windows-latest]
18+
build_type: [Debug, Release]
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Configure with CMake
26+
run: >
27+
cmake
28+
-B ${{ env.RAWDEV_BUILD_PATH }}
29+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
30+
31+
- name: Build
32+
run: >
33+
cmake
34+
--build ${{ env.RAWDEV_BUILD_PATH }}
35+
--config ${{ matrix.build_type }}
36+
37+
- name: Test
38+
working-directory: ${{ env.RAWDEV_BUILD_PATH }}
39+
run: ctest --build-config ${{ matrix.build_type }}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ RawDev
44

55
Version 2.0, April 2025
66

7+
[![Build and test](
8+
https://github.com/petrk23/RawDev/actions/workflows/build.yml/badge.svg)](
9+
https://github.com/petrk23/RawDev/actions/workflows/build.yml)
10+
711
What is RawDev
812
--------------
913
RawDev is a command-line tool that takes RAW file from the camera

0 commit comments

Comments
 (0)