Issue #562 — l1a/l1b PASS; l2 FAIL (unsupported + 2/4 codepaths broken) #2193
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: opencode | |
| run-name: "Issue #${{ github.event.issue.number }} — ${{ github.event.issue.title }}" | |
| on: | |
| issue_comment: | |
| types: [created] | |
| pull_request_review_comment: | |
| types: [created] | |
| jobs: | |
| opencode: | |
| if: | | |
| (contains(github.event.comment.body, ' /oc ') || | |
| startsWith(github.event.comment.body, '/oc ')) && | |
| (github.event.comment.author_association == 'COLLABORATOR' || | |
| github.event.comment.author_association == 'MEMBER' || | |
| github.event.comment.author_association == 'OWNER') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| env: | |
| # This forces actions to use Node 24 and clears the warning | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| permissions: | |
| id-token: write | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Clone wiki | |
| run: gh repo clone LSantha/jnode_ai.wiki .wiki | |
| env: | |
| GH_TOKEN: ${{ secrets.GH_PAT }} | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '8' | |
| distribution: 'zulu' | |
| - name: Install QEMU | |
| run: sudo apt-get update -qq && sudo apt-get install -y -qq qemu-system-x86 socat | |
| - name: Prepare jnode.properties | |
| run: cp .github/qemu/jnode.properties . | |
| - name: Cache ISO build | |
| id: cache-iso | |
| uses: actions/cache@v4 | |
| with: | |
| path: all/build/cdroms/jnode-x86-lite.iso | |
| key: jnode-iso-${{ hashFiles('**/*.java', '**/build.xml', 'build.sh') }} | |
| - name: Build ISO | |
| if: steps.cache-iso.outputs.cache-hit != 'true' | |
| run: sh build.sh cd-x86-lite | |
| - name: Run opencode | |
| id: run_agent | |
| uses: anomalyco/opencode/github@latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
| OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }} | |
| with: | |
| model: opencode/mimo-v2.5-free | |
| variant: high | |
| - name: Apply agent/* label and close if work-product is the comment | |
| if: success() || failure() || cancelled() | |
| env: | |
| PREV_CONCLUSION: ${{ steps.run_agent.outcome }} | |
| uses: actions/github-script@v7 | |
| with: | |
| github-token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }} | |
| script: | | |
| const postStep = require('./.github/scripts/opencode-post-step.js'); | |
| await postStep({ github, context, core }); |