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
| on: | ||
| workflow_call: | ||
| inputs: | ||
| compileargs: | ||
| # Just build the core application and the shared test helpers, but leave actually | ||
| # building the tests to the individual workers who need each test suite since | ||
| # there won't be much overlap and the various workers can work in parallel | ||
| default: 'dist.executable + core.api.test.compile + testkit.compile' | ||
| type: string | ||
| java-version: | ||
| default: '17' | ||
| type: string | ||
| os: | ||
| type: string | ||
| timeout-minutes: | ||
| default: 60 | ||
| type: number | ||
| shell: | ||
| required: true | ||
| type: string | ||
| jobs: | ||
| run: | ||
| runs-on: ${{ inputs.os }} | ||
| timeout-minutes: ${{ inputs.timeout-minutes }} | ||
| steps: | ||
| # For normal PR jobs, just checkout the base_ref the PR is against | ||
| - uses: actions/checkout@v5 | ||
| with: { fetch-depth: 1 } | ||
| - uses: ./.github/actions/pre-build-setup | ||
| with: | ||
| os: ${{ inputs.os }} | ||
| java-version: ${{ inputs.java-version }} | ||
| shell: ${{ inputs.shell }} | ||
| - run: ./mill -i dist.installLocal | ||
| - run: rm -rf out | ||
| shell: ${{ inputs.shell }} | ||
| - run: ./mill-assembly.jar -i -k ${{ inputs.compileargs }} | ||
| - uses: actions/[email protected] | ||
| with: | ||
| path: . | ||
| name: ${{ inputs.os }}-artifact | ||
| include-hidden-files: true | ||