Repository navigation
Fix #2781, guard server-only TIME message ID #3036
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Static Analysis | |
| on: | |
| push: | |
| branches: | |
| - dev | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| workflow_dispatch: | |
| schedule: | |
| # 11:59 PM UTC every Sunday | |
| - cron: '59 23 * * 0' | |
| jobs: | |
| static-analysis: | |
| name: Run Static Analysis | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/core-flight-system/cfsbuildenv-linux:latest | |
| timeout-minutes: 15 | |
| steps: | |
| - name: Checkout CFE | |
| uses: actions/checkout@v6 | |
| with: | |
| path: cfe | |
| - name: Set up Dependencies | |
| uses: ./cfe/.github/actions/setup-cfe | |
| with: | |
| source-dir: . | |
| preferred-ref: ${{ github.head_ref }} | |
| org: 'nasa' | |
| # Setup the build system | |
| - name: Create build tree | |
| run: cmake -DCMAKE_INSTALL_PREFIX=/exe -DCMAKE_BUILD_TYPE=debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DSIMULATION=native -S cfe -B build | |
| - name: List Files | |
| run: ls -la build/native/* | |
| - name: Run cppcheck | |
| uses: nasa/cFS/actions/cppcheck@dev | |
| id: run-cppcheck | |
| with: | |
| strict-dir-list: './cfe/modules/core_api/fsw ./cfe/modules/core_private/fsw ./cfe/modules/es/fsw ./cfe/modules/evs/fsw ./cfe/modules/fs/fsw ./cfe/modules/msg/fsw ./cfe/modules/resourceid/fsw ./cfe/modules/sb/fsw ./modules/cfe/sbr/fsw ./modules/cfe/tbl/fsw ./cfe/modules/time/fsw -UCFE_PLATFORM_TIME_CFG_CLIENT -DCFE_PLATFORM_TIME_CFG_SERVER' | |
| compile-commands-json: ./build/compile_commands.json ./build/native/default_cpu1/compile_commands.json | |
| module-path: cfe | |
| cppcheck-xslt-path: 'nasa/cFS/raw/refs/heads/dev/.github/scripts' |