-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (35 loc) · 1.19 KB
/
build_source_tests.yaml
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
42
43
44
name: Build Source Tests
on:
workflow_dispatch:
push:
branches: [trunk]
pull_request:
branches: [trunk]
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
atsdk:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Show gcc version
run: gcc --version
- name: Install atsdk
run: cmake -S . -B build -DCMAKE_C_COMPILER=gcc \
-DCMAKE_C_FLAGS="-Wall -Wextra -Werror-implicit-function-declaration" \
-DCMAKE_COMPILE_WARNING_AS_ERROR="on"
- name: Show CMake Cache Variables
run: cmake -L -N -S . -B build
- name: Build atsdk
run: cmake --build build
- name: Install atsdk
run: sudo cmake --build build --target install
- name: Build sample_cmake_project
working-directory: examples/desktop/sample_cmake_project
run: |
cmake -S . -B build -Datsdk="/usr/local/bin/cmake/atsdk"
cmake --build build
- name: Run sample_cmake_project executable
working-directory: examples/desktop/sample_cmake_project
run: |
./build/main