-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.1 KB
/
native-build.yml
File metadata and controls
44 lines (37 loc) · 1.1 KB
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: native-build
on:
push:
branches:
- "**"
pull_request:
jobs:
native-build:
name: build-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -S . -B build
- name: Build Native Targets
run: cmake --build build --config Release
- name: Validate Artifacts (Unix)
if: runner.os != 'Windows'
shell: bash
run: |
test -f build/sysnetmon-server
test -f build/sysnetmon-agent
- name: Validate Artifacts (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
if (!(Test-Path "build/Release/sysnetmon-server.exe") -and !(Test-Path "build/sysnetmon-server.exe")) {
throw "Server artifact missing"
}
if (!(Test-Path "build/Release/sysnetmon-agent.exe") -and !(Test-Path "build/sysnetmon-agent.exe")) {
throw "Agent artifact missing"
}