-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 812 Bytes
/
build-test.yml
File metadata and controls
41 lines (33 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/embedded-lib-dev:latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check environment
run: |
cmake --version
gcc --version
- name: Create build directory
run: mkdir build
- name: Configure CMake
run: cmake -DTARGET_GROUP=test ..
working-directory: ./build
- name: Build tests
run: cmake --build .
working-directory: ./build
- name: Run tests
run: ctest --output-on-failure
working-directory: ./build