-
Notifications
You must be signed in to change notification settings - Fork 132
36 lines (33 loc) · 992 Bytes
/
Copy path_build.yml
File metadata and controls
36 lines (33 loc) · 992 Bytes
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
name: Build
on:
workflow_call:
inputs:
os:
description: Runner to build on.
type: string
default: ubuntu-latest
upload-artifacts:
description: Upload the product tarball/zip (used by the master build).
type: boolean
default: false
permissions:
contents: read
jobs:
build:
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- name: Set up Java
uses: ./.github/actions/setup-java
- name: Build
run: mvn --batch-mode install -DskipTests
- name: Archive build artifacts
if: ${{ inputs.upload-artifacts }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
with:
name: Phoebus product ${{ inputs.os }}
path: |
${{ github.workspace }}/phoebus-product/target/*.tar.gz
${{ github.workspace }}/phoebus-product/target/*.zip