-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (46 loc) · 1.15 KB
/
build-singleplatform.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
42
43
44
45
46
47
48
49
50
51
52
53
name: Single-Platform Build
on: push
env:
BUILD_JDK: 11
jobs:
#
# build the java application with single (local) platform
#
single_platform_jar:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: ${{ env.BUILD_JDK }}
-
name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
-
name: Build using the build script
env:
GITHUB_USER: ${{ secrets.GH_USER }}
GITHUB_PASSWORD: ${{ secrets.GH_PASSWORD }}
run: ./build.sh
-
name: Archive Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: target
path: openssl4j/target
-
uses: actions/upload-artifact@v3
with:
name: build
path: openssl4j/target/*.jar