Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup HEMTT
uses: arma-actions/hemtt@v1

- name: Run HEMTT check
run: |
# Run hemtt check and capture output
OUTPUT=$(hemtt check 2>&1) || true
echo "$OUTPUT"

# Filter out L-S29 (false positives for dynamically defined functions)
# and fail if any other warnings remain
WARNINGS=$(echo "$OUTPUT" | grep -E "warning\[" | grep -v "L-S29" || true)
if [ -n "$WARNINGS" ]; then
echo ""
echo "::error::Lint warnings found:"
echo "$WARNINGS"
exit 1
fi

- name: Run HEMTT build
run: hemtt build

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: ocap-build
path: .hemttout/build/
retention-days: 7
3 changes: 3 additions & 0 deletions .hemtt/project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ command_case = false
banned_commands = false
undefined = false
format_args = false
# Optimization suggestions - not critical
if_assign = false
select_parse_number = false
Loading