FileSystem: corrected a bug in ffind for EFS which could return invalid file for explicit search #265
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: Build - FileSystem | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '.ci/FileSystem/**' | |
| - .github/workflows/build_fs.yml | |
| - .github/codeql-config.yml | |
| - 'Examples/FileSystem/**' | |
| - 'Components/FileSystem/**' | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| TARGET_TYPE: CM4 | |
| TARGET_DEVICE: ARMCM4 | |
| TARGET_LAYER: $SolutionDir()$/../../.ci/Board/Board.clayer.yml | |
| jobs: | |
| Build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| compiler: [AC6, GCC] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout MDK-Middleware | |
| uses: actions/checkout@v7 | |
| - name: Setup board layer | |
| run: | | |
| sed -i "s|target-types:|&\n - type: $TARGET_TYPE\n device: $TARGET_DEVICE\n variables:\n - Board-Layer: $TARGET_LAYER|" ./Examples/FileSystem/FileSystem.csolution.yml | |
| - name: Cache packs | |
| uses: actions/cache@v6 | |
| with: | |
| key: cmsis-packs-${{ github.workflow }}-${{ hashFiles('**/*.csolution.yml', '**/*.cproject.yml', '**/*.clayer.yml') }} | |
| restore-keys: | | |
| cmsis-packs-${{ github.workflow }}- | |
| cmsis-packs- | |
| path: /home/runner/.cache/arm/packs | |
| - name: Prepare vcpkg env | |
| uses: ARM-software/cmsis-actions/vcpkg@v1 | |
| with: | |
| config: .ci/vcpkg-configuration.json | |
| - name: Initialize CMSIS pack root folder | |
| run: | | |
| cpackget init https://www.keil.com/pack/index.pidx | |
| cpackget update-index | |
| - name: Use local MDK-Middleware pack | |
| run: | | |
| cpackget rm Keil.MDK-Middleware || true | |
| cpackget add Keil.MDK-Middleware.pdsc | |
| - name: Activate Arm tool license | |
| run: | | |
| armlm activate --server https://mdk-preview.keil.arm.com --product KEMDK-COM0 | |
| - uses: ammaraskar/gcc-problem-matcher@master | |
| - name: Initialize CodeQL | |
| if: matrix.compiler == 'GCC' | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: cpp | |
| queries: security-and-quality | |
| build-mode: manual | |
| trap-caching: false | |
| config-file: .github/codeql-config.yml | |
| - name: Build FileSystem sources | |
| if: always() | |
| run: | | |
| cbuild ./.ci/Library.csolution.yml --packs --update-rte --context FileSystem --toolchain ${{ matrix.compiler }} | |
| - name: Build FileSystem examples | |
| if: always() | |
| run: | | |
| cbuild ./Examples/FileSystem/FileSystem.csolution.yml --packs --update-rte --toolchain ${{ matrix.compiler }} | |
| - name: Perform CodeQL Analysis | |
| if: ${{ !cancelled() && matrix.compiler == 'GCC' }} | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: /component/filesystem | |
| - name: Deactivate Arm tool license | |
| if: always() | |
| run: | | |
| armlm deactivate --product KEMDK-COM0 |