Prune zephyr manifest #176
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: ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Lint | |
| run: | | |
| make fmt | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: false # We'll handle submodules with smart caching | |
| fetch-depth: 0 | |
| - name: Cache submodules | |
| id: cache-submodules | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| lib/fprime | |
| lib/fprime-zephyr | |
| lib/zephyr-workspace/zephyr | |
| key: project-deps-${{ hashFiles('.gitmodules') }}-v3 | |
| restore-keys: | | |
| project-deps-${{ hashFiles('.gitmodules') }}- | |
| project-deps- | |
| - name: Setup submodules | |
| if: steps.cache-submodules.outputs.cache-hit != 'true' | |
| run: | | |
| make submodules | |
| - name: Cache python environment | |
| id: cache-python | |
| uses: actions/cache@v4 | |
| with: | |
| path: fprime-venv | |
| key: python-packages-${{ runner.os }}-${{ hashFiles('requirements.txt') }}-v3 | |
| restore-keys: | | |
| python-packages-${{ runner.os }}- | |
| python-packages- | |
| - name: Setup python environment | |
| if: steps.cache-python.outputs.cache-hit != 'true' | |
| run: | | |
| make fprime-venv | |
| - name: Cache Zephyr workspace and SDK | |
| id: cache-zephyr | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| lib/zephyr-workspace/modules | |
| lib/zephyr-workspace/bootloader | |
| ~/zephyr-sdk-0.17.2 | |
| key: zephyr-minimal-${{ hashFiles('west.yml') }}-${{ runner.os }}-v3 | |
| restore-keys: | | |
| zephyr-minimal-${{ hashFiles('west.yml') }}-${{ runner.os }}- | |
| zephyr-minimal- | |
| - name: Setup Zephyr | |
| if: steps.cache-zephyr.outputs.cache-hit != 'true' | |
| run: | | |
| make zephyr-setup | |
| env: | |
| PIP_DISABLE_PIP_VERSION_CHECK: 1 | |
| PIP_NO_COMPILE: 1 | |
| - name: Build | |
| run: | | |
| # Skip both zephyr-setup and submodules since we cached them separately | |
| make build -o zephyr-setup -o submodules | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifacts | |
| path: | | |
| build-artifacts/zephyr.uf2 | |
| build-artifacts/zephyr/fprime-zephyr-deployment/dict/ReferenceDeploymentTopologyDictionary.json | |
| retention-days: 30 |