fix(wifi): stabilize hosted softap bringup #266
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: Host Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 25 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| lfs: false | |
| submodules: recursive | |
| - name: Install deps (Ninja, CMake, GTest) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ninja-build cmake ccache libgtest-dev | |
| sudo cmake -S /usr/src/googletest -B /usr/src/googletest/build | |
| sudo cmake --build /usr/src/googletest/build -j | |
| sudo cp -a /usr/src/googletest/build/lib/* /usr/local/lib/ | |
| - name: Cache ccache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/ccache | |
| key: ccache-host-${{ runner.os }}-${{ hashFiles('**/CMakeLists.txt', 'custom/**', 'tests/**') }} | |
| restore-keys: | | |
| ccache-host-${{ runner.os }}- | |
| - name: Configure (Ninja + ccache) | |
| env: | |
| CCACHE_DIR: ~/.cache/ccache | |
| run: | | |
| cmake -S tests -B tests/build \ | |
| -G Ninja \ | |
| -DCMAKE_UNITY_BUILD=ON \ | |
| -DCMAKE_C_COMPILER_LAUNCHER=ccache \ | |
| -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ | |
| -DROMS_ONLY=ON | |
| - name: Build all tests | |
| run: cmake --build tests/build -j | |
| - name: List golden assets (optional) | |
| run: ls -la tests/ui/golden || true | |
| - name: Run tests | |
| run: ctest --test-dir tests/build --output-on-failure --timeout 60 | |
| - name: Secret scan (only if script exists) | |
| run: | | |
| if [ -x ./tools/check_secrets.sh ]; then | |
| ./tools/check_secrets.sh | |
| else | |
| echo "tools/check_secrets.sh not found or not executable; skipping." | |
| fi |