Weekly #17
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: Weekly | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 1" | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| full-build: | |
| name: Full Build (${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Configure | |
| run: cmake -B build -DEBLDR_BUILD_TESTS=ON | |
| - name: Build | |
| run: cmake --build build --config Release | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure -C Release | |
| cross-compile: | |
| name: Cross (${{ matrix.arch }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - arch: arm-cortex-m | |
| toolchain: toolchains/arm-none-eabi.cmake | |
| packages: gcc-arm-none-eabi | |
| - arch: aarch64-linux | |
| toolchain: toolchains/aarch64-linux-gnu.cmake | |
| packages: gcc-aarch64-linux-gnu | |
| - arch: riscv64-linux | |
| toolchain: toolchains/riscv64-linux-gnu.cmake | |
| packages: gcc-riscv64-linux-gnu | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install cross-compiler | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y ${{ matrix.packages }} | |
| - name: Build | |
| run: | | |
| cmake -B build -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} -DCMAKE_BUILD_TYPE=Release | |
| cmake --build build | |
| report: | |
| name: Weekly Report | |
| runs-on: ubuntu-latest | |
| needs: [full-build, cross-compile] | |
| if: always() | |
| steps: | |
| - name: Summary | |
| run: | | |
| echo "## Weekly Report — eBoot" | |
| echo "| Job | Status |" | |
| echo "|---|---|" | |
| echo "| Full builds | ${{ needs.full-build.result }} |" | |
| echo "| Cross-compile | ${{ needs.cross-compile.result }} |" | |
| if [ "${{ needs.full-build.result }}" != "success" ] || \ | |
| [ "${{ needs.cross-compile.result }}" != "success" ]; then | |
| echo "❌ REGRESSION DETECTED" | |
| exit 1 | |
| fi | |
| echo "✅ All weekly checks passed" |