forked from eclipse-wakaama/wakaama
-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (53 loc) · 1.76 KB
/
build.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Compilation only checks
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
standards:
runs-on: ubuntu-24.04
strategy:
matrix:
compiler: ["clang-18", "gcc-13"]
c_standard: ["99", "11"]
c_extensions: ["ON", "OFF"]
steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
fetch-depth: 0
- name: Install dependencies from APT repository
run: |
sudo apt-get update
sudo apt-get install cmake libcunit1-dev ninja-build unzip wget
- name: Build all binaries
run: |
tools/ci/run_ci.sh \
--run-build \
--c-standard ${{ matrix.c_standard }} \
--c-extensions ${{ matrix.c_extensions }}
env:
CC: ${{ matrix.compiler }}
standalone-examples:
runs-on: ubuntu-24.04
strategy:
matrix:
example: ["bootstrap_server", "client/udp", "client/tinydtls", "client/raw_block1", "lightclient", "server"]
steps:
- name: Checkout code including full history and submodules
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: true
fetch-depth: 0
- name: Install dependencies from APT repository
run: |
sudo apt-get update
sudo apt-get install cmake libcunit1-dev ninja-build unzip wget
- name: Build examples as stand-alone projects
run: |
tools/ci/run_ci.sh \
--run-clean \
--run-build \
--source-directory examples/${{ matrix.example }} \
--build-directory wakaama-build-${{ matrix.example }}