add gitattributes file #8
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: | |
| push: | |
| branches: [main] | |
| paths-ignore: | |
| - "docs/**" | |
| - "**/*.md" | |
| - "**/*.png" | |
| - "**/*.svg" | |
| pull_request: | |
| branches: [main] | |
| paths-ignore: | |
| - "docs/**" | |
| - "**/*.md" | |
| - "**/*.png" | |
| - "**/*.svg" | |
| workflow_dispatch: | |
| concurrency: | |
| group: provider-bread-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| VCPKG_COMMIT: "66c0373dc7fca549e5803087b9487edfe3aca0a1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| no-hardware-linux: | |
| name: Linux Build and Test (no hardware) | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout anolis-provider-bread | |
| uses: actions/checkout@v4 | |
| with: | |
| path: anolis-provider-bread | |
| submodules: recursive | |
| - name: Checkout CRUMBS | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: FEASTorg/CRUMBS | |
| path: CRUMBS | |
| - name: Checkout bread-crumbs-contracts | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: FEASTorg/bread-crumbs-contracts | |
| path: bread-crumbs-contracts | |
| - name: Install build tools | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y cmake ninja-build g++ | |
| - name: Setup vcpkg | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }} | |
| doNotCache: false | |
| - name: Configure | |
| working-directory: anolis-provider-bread | |
| run: cmake --preset ci-linux-release | |
| - name: Build | |
| working-directory: anolis-provider-bread | |
| run: cmake --build --preset ci-linux-release --parallel | |
| - name: Test | |
| working-directory: anolis-provider-bread | |
| run: ctest --preset ci-linux-release | |
| no-hardware-windows: | |
| name: Windows Build and Test (no hardware) | |
| runs-on: windows-2022 | |
| timeout-minutes: 45 | |
| steps: | |
| - name: Checkout anolis-provider-bread | |
| uses: actions/checkout@v4 | |
| with: | |
| path: anolis-provider-bread | |
| submodules: recursive | |
| - name: Checkout CRUMBS | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: FEASTorg/CRUMBS | |
| path: CRUMBS | |
| - name: Checkout bread-crumbs-contracts | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: FEASTorg/bread-crumbs-contracts | |
| path: bread-crumbs-contracts | |
| - name: Setup vcpkg | |
| uses: lukka/run-vcpkg@v11 | |
| with: | |
| vcpkgGitCommitId: ${{ env.VCPKG_COMMIT }} | |
| doNotCache: false | |
| - name: Configure | |
| working-directory: anolis-provider-bread | |
| shell: pwsh | |
| run: cmake --preset ci-windows-release | |
| - name: Build | |
| working-directory: anolis-provider-bread | |
| shell: pwsh | |
| run: cmake --build --preset ci-windows-release --parallel | |
| - name: Test | |
| working-directory: anolis-provider-bread | |
| shell: pwsh | |
| run: ctest --preset ci-windows-release |