Add mermaid diagram reather than txt #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: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| name: Linux | |
| artifact: reaper_reaserve.so | |
| - os: macos-latest | |
| name: macOS | |
| artifact: reaper_reaserve.dylib | |
| - os: windows-latest | |
| name: Windows | |
| artifact: reaper_reaserve.dll | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure | |
| run: cmake -B build -DCMAKE_BUILD_TYPE=Release -DREASERVE_BUILD_TESTS=ON | |
| - name: Build | |
| run: cmake --build build --config Release | |
| - name: Test | |
| run: ctest --test-dir build --output-on-failure -C Release | |
| - name: Find binary | |
| id: binary | |
| shell: bash | |
| run: | | |
| # MSVC puts output in build/Release/, others in build/ | |
| path=$(find build -name "${{ matrix.artifact }}" -type f | head -1) | |
| echo "path=$path" >> "$GITHUB_OUTPUT" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: reaper_reaserve-${{ matrix.name }} | |
| path: ${{ steps.binary.outputs.path }} | |
| if-no-files-found: warn |