Skip to content

Commit dfd69dc

Browse files
author
Thomas
committed
add github workflows
1 parent 94f0c5a commit dfd69dc

File tree

3 files changed

+86
-0
lines changed

3 files changed

+86
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build And Test
2+
3+
on: push
4+
5+
env:
6+
VCPKG_BINARY_SOURCES: "clear;x-aws,s3://vcpkg-build-cache-us-east-1,readwrite"
7+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
8+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
9+
10+
jobs:
11+
build-and-test-cpp:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
fetch-depth: 0
20+
- name: Build and unittest
21+
run: cmake --workflow --preset test
22+
working-directory: sdk
23+
24+
- uses: oven-sh/setup-bun@v2
25+
26+
- name: Install integration test server
27+
run: bun install
28+
working-directory: integration_test_server
29+
30+
- name: Start integration test server
31+
run: bun dev &
32+
working-directory: integration_test_server
33+
34+
- name: Integration test run
35+
run: ./build/test/nabto_integration_test
36+
working-directory: sdk
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build examples
2+
3+
on: push
4+
5+
env:
6+
VCPKG_BINARY_SOURCES: "clear;x-aws,s3://vcpkg-build-cache-us-east-1,readwrite"
7+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
8+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
9+
10+
jobs:
11+
build-cpp-examples:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
19+
fetch-depth: 0
20+
- name: Build
21+
run: cmake --workflow --preset release
22+
working-directory: examples/libdatachannel
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Library code
2+
3+
on: push
4+
5+
permissions:
6+
actions: write
7+
checks: write
8+
contents: read
9+
10+
env:
11+
VCPKG_BINARY_SOURCES: "clear;x-aws,s3://vcpkg-build-cache-us-east-1,readwrite"
12+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
13+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
14+
15+
16+
jobs:
17+
clang-tidy-check:
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
with:
24+
submodules: recursive
25+
fetch-depth: 0
26+
- name: Run clang tidy
27+
run: cmake --workflow --preset clang_tidy
28+
working-directory: sdk/cpp

0 commit comments

Comments
 (0)