Skip to content

chore(phase-8): CI governance, Windows CI lane, scripts, README badge… #3

chore(phase-8): CI governance, Windows CI lane, scripts, README badge…

chore(phase-8): CI governance, Windows CI lane, scripts, README badge… #3

Workflow file for this run

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:
foundation-linux:
name: Foundation Build and Test (Linux, 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-foundation-release
- name: Build
working-directory: anolis-provider-bread
run: cmake --build --preset ci-foundation-release --parallel
- name: Test
working-directory: anolis-provider-bread
run: ctest --preset ci-foundation-release
foundation-windows:
name: Foundation Build and Test (Windows, 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-foundation-release
- name: Build
working-directory: anolis-provider-bread
shell: pwsh
run: cmake --build --preset ci-windows-foundation-release --parallel
- name: Test
working-directory: anolis-provider-bread
shell: pwsh
run: ctest --preset ci-windows-foundation-release