-
-
Notifications
You must be signed in to change notification settings - Fork 375
41 lines (36 loc) · 957 Bytes
/
pre-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
workflow_call:
inputs:
compileargs:
default: '__.compile'
type: string
java-version:
default: '11'
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@v4
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 -k ${{ inputs.compileargs }}
- uses: actions/[email protected]
with:
path: .
name: ${{ inputs.os }}-artifact
include-hidden-files: true