-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (37 loc) · 1.11 KB
/
sub_gradle_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
42
43
name: Build Anchor Platform Runnable Jar
on:
workflow_dispatch:
workflow_call:
jobs:
gradle_build:
name: Gradle Build and Unit Tests
runs-on: ubuntu-latest-16-cores
permissions:
contents: read
# write to PR permission is required for jacocoTestReport Action to update comment
pull-requests: write
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
show-progress: false
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Gradle Build with unit tests only
env:
run_docker: false
run: ./gradlew runBuild
- name: Archive Project Folder
run: |
cd /home/runner/work/anchor-platform
tar -cf /home/runner/anchor-platform.tar ./anchor-platform
- name: Upload anchor-platform.tar to GitHub Artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: anchor-platform-tar
path: |
/home/runner/anchor-platform.tar