Analyze and index #3
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
| run-name: "Analyze and index ${{ inputs.buildNumber }}" | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| repo: | |
| description: "The repo to build (i.e. Ref12/Codex)." | |
| required: true | |
| args: | |
| description: "Additional arguments to pass" | |
| required: false | |
| default: '' | |
| jobs: | |
| index: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: "Setup env" | |
| shell: pwsh | |
| run: | | |
| "CODEX_OUTPUT=${{ runner.temp }}/cdx" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | |
| - name: "Install Ref12.AutoCodex" | |
| shell: pwsh | |
| run: | | |
| dotnet tool install -g --prerelease Ref12.AutoCodex | |
| - name: "Index ${{ inputs.repo }}" | |
| shell: pwsh | |
| run: | | |
| . autocodex full-index-no-upload ` | |
| -o "${{ env.CODEX_OUTPUT }}" ` | |
| -r "${{ inputs.repo }}" ` | |
| --config-root "${{ github.workspace }}" ${{ inputs.args }} | |
| - name: Upload analysis artifact | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: analysis | |
| path: ${{ env.CODEX_OUTPUT }}/store | |
| - name: Upload index artifact | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: index | |
| path: ${{ env.CODEX_OUTPUT }}/index | |
| - name: Upload binlogs artifact | |
| if: ${{ always() }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: binlogs | |
| path: ${{ env.CODEX_OUTPUT }}/binlogs | |