feat: v0.0.2 — add macOS platform (platforms = linux + macos) (#3) #10
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, master] | |
| pull_request: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| linux: | |
| name: mcpp (ubuntu-latest, required) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # No host nasm needed: mcpp >= 0.0.97 provisions nasm through the same | |
| # synchronous gate as the toolchain (index refresh + install + payload | |
| # check BEFORE the build plans, mcpp#232). | |
| - name: Install Xlings | |
| env: | |
| XLINGS_NON_INTERACTIVE: 1 | |
| run: | | |
| curl -fsSL https://raw.githubusercontent.com/openxlings/xlings/refs/heads/main/tools/other/quick_install.sh | bash | |
| echo "$HOME/.xlings/subos/current/bin" >> "$GITHUB_PATH" | |
| - name: Install project tools | |
| run: | | |
| xlings update | |
| xlings install | |
| # Same transition step as imgui-m: pin the glibc gcc toolchain explicitly | |
| # until mcpp's bootstrap default settles. | |
| - name: Set default toolchain | |
| run: | | |
| mcpp toolchain install gcc 16.1.0 | |
| mcpp toolchain default gcc@16.1.0 | |
| mcpp --version | |
| - name: Build library (via compat.ffmpeg source build) | |
| run: mcpp build | |
| - name: Run tests (API surface + encode/decode roundtrip) | |
| run: mcpp test | |
| - name: Run probe example (path-dep consumer) | |
| run: | | |
| cd examples/probe | |
| mcpp run | |
| - name: Build decode_frames example | |
| run: | | |
| cd examples/decode_frames | |
| mcpp build |