Correct a comment that claimed the tool collapse happens last #7
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
| # Fork-local build check. | |
| # | |
| # Upstream's release workflows target OpenAI's self-hosted runner groups | |
| # (`${{ github.event.repository.name }}-runners`), which do not exist here — a | |
| # fork that inherits them queues forever with no error. This workflow uses | |
| # GitHub-hosted runners so the fork can prove, on every push, that chutescoder | |
| # builds and its tests pass on both Linux and Windows. | |
| name: chutescoder build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: ${{ matrix.name }} | |
| runs-on: ${{ matrix.os }} | |
| timeout-minutes: 120 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - name: linux-x64 | |
| os: ubuntu-24.04 | |
| - name: windows-x64 | |
| os: windows-latest | |
| defaults: | |
| run: | |
| working-directory: codex-rs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install the pinned toolchain | |
| run: rustup show active-toolchain || rustup toolchain install | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: codex-rs | |
| # The RLM kernel is a Python sidecar. Without these the chutes-rlm | |
| # integration tests skip themselves rather than fail, so install them — | |
| # a green run that silently skipped the sidecar tests is worse than no run. | |
| - name: Install the RLM kernel's requirements | |
| run: python -m pip install --upgrade ipython dill | |
| - name: Linux build prerequisites | |
| if: runner.os == 'Linux' | |
| run: sudo apt-get update && sudo apt-get install -y pkg-config libcap-dev | |
| - name: Build chutescoder | |
| run: cargo build --release --bin chutescoder | |
| - name: Test the RLM harness | |
| run: cargo test -p codex-chutes-rlm --release | |
| - name: Smoke the binary | |
| run: | | |
| ./target/release/chutescoder --version | |
| ./target/release/chutescoder --help | |
| shell: bash | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: chutescoder-${{ matrix.name }} | |
| path: | | |
| codex-rs/target/release/chutescoder | |
| codex-rs/target/release/chutescoder.exe | |
| if-no-files-found: error |