Skip to content

Commit 3f19f76

Browse files
committed
No CI, proprietary headers and library gitignored
1 parent 8e61e7c commit 3f19f76

File tree

2 files changed

+4
-118
lines changed

2 files changed

+4
-118
lines changed

.github/workflows/ci-build.yml

Lines changed: 3 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,6 @@
1-
# file: .github/workflows/ci-build.yml
1+
# file: NxCoreApi003CategoryMessage/.github/workflows/ci-build.yml
22

3-
name: CI - Build & Test
3+
# No continuous integration configured - proprietary library and headers in this project.
44

5-
on:
6-
push:
7-
branches: [main]
8-
pull_request:
9-
branches: [main]
10-
workflow_dispatch:
5+
# name: CI - Build & Test
116

12-
jobs:
13-
build:
14-
name: Build & smoke-check (${{ matrix.name }})
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
include:
21-
- name: Ubuntu 24.04 - g++-13
22-
os: ubuntu-24.04
23-
cc: gcc-13
24-
cxx: g++-13
25-
26-
steps:
27-
- name: Checkout repository
28-
uses: actions/checkout@v4
29-
with:
30-
fetch-depth: 0 # helpful for any git-based versioning later
31-
32-
- name: Install build dependencies (Ubuntu)
33-
if: runner.os == 'Linux'
34-
run: |
35-
sudo apt-get update -qq
36-
sudo apt-get install -y --no-install-recommends \
37-
build-essential \
38-
cmake \
39-
ninja-build \
40-
g++-13 \
41-
libstdc++-13-dev
42-
43-
- name: Verify source directory structure (debug)
44-
run: |
45-
echo "=== GITHUB_WORKSPACE ==="
46-
echo "${{ github.workspace }}"
47-
echo ""
48-
cd "${{ github.workspace }}"
49-
pwd
50-
echo ""
51-
echo "=== ls -la (root) ==="
52-
ls -la
53-
echo ""
54-
echo "=== cmake/ folder ==="
55-
ls -la cmake/ || echo "ERROR: cmake/ not found!"
56-
echo ""
57-
echo "=== CompilerOptions.cmake ==="
58-
ls -la cmake/CompilerOptions.cmake || echo "ERROR: cmake/CompilerOptions.cmake not found!"
59-
echo ""
60-
echo "=== Search for CompilerOptions anywhere ==="
61-
find . -type f -name CompilerOptions.cmake || echo "Not found anywhere"
62-
63-
# Temporarily disabled — re-enable after first successful run
64-
# - name: Cache build directory
65-
# uses: actions/cache@v4
66-
# with:
67-
# path: build
68-
# key: ${{ runner.os }}-build-ninja-${{ matrix.name }}-${{ hashFiles('CMakeLists.txt', '**/CMakeLists.txt', 'cmake/*.cmake', 'CMakePresets.json') }}
69-
# restore-keys: ${{ runner.os }}-build-ninja-${{ matrix.name }}-
70-
71-
- name: Configure CMake (absolute paths)
72-
env:
73-
CC: ${{ matrix.cc }}
74-
CXX: ${{ matrix.cxx }}
75-
run: |
76-
cmake -S "${{ github.workspace }}" \
77-
-B "${{ github.workspace }}/build" \
78-
-G Ninja \
79-
-DCMAKE_BUILD_TYPE=Release \
80-
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
81-
-DBUILD_LIBRARY=ON \
82-
-DBUILD_APPS=ON \
83-
-DBUILD_TESTS=OFF \
84-
-DENABLE_NXCORE=OFF \
85-
-DCMAKE_VERBOSE_MAKEFILE=ON \
86-
-DCMAKE_INSTALL_PREFIX="${{ github.workspace }}/install-test"
87-
88-
- name: Build
89-
run: cmake --build "${{ github.workspace }}/build" --parallel $(nproc)
90-
91-
- name: Install (test install rules)
92-
run: cmake --install "${{ github.workspace }}/build"
93-
94-
- name: Show installed files (debug)
95-
if: always()
96-
run: |
97-
echo "=== Installed files ==="
98-
find "${{ github.workspace }}/install-test" -type f | sort || echo "Nothing installed"
99-
100-
- name: Smoke check - catmsg executable
101-
if: runner.os == 'Linux'
102-
run: |
103-
set -e
104-
EXEC="${{ github.workspace }}/build/apps/catmsg/catmsg"
105-
if [ ! -x "$EXEC" ]; then
106-
echo "ERROR: catmsg not built or not executable"
107-
exit 1
108-
fi
109-
110-
echo "Running: $EXEC (expect usage/help)"
111-
"$EXEC" 2>&1 | grep -qiE "usage|catmsg|options" && echo "OK - found expected output" || {
112-
echo "ERROR: No expected usage/help message"
113-
"$EXEC" --help || true
114-
exit 1
115-
}
116-
117-
# Uncomment when tests are ready
118-
# - name: Run unit tests
119-
# if: runner.os == 'Linux'
120-
# run: ctest --test-dir "${{ github.workspace }}/build" --output-on-failure --parallel $(nproc)

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
7575
endif()
7676

7777
# ── Include custom cmake helpers ───────────────────────────────────────────
78-
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
78+
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
7979
include(CompilerOptions)
8080

8181
# ── NxCore (proprietary) ───────────────────────────────────────────────────

0 commit comments

Comments
 (0)