-
Notifications
You must be signed in to change notification settings - Fork 23
42 lines (35 loc) · 1.08 KB
/
ci.yml
File metadata and controls
42 lines (35 loc) · 1.08 KB
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
name: CI
on: [push, pull_request]
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JRE 8 as libs for R8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: adopt-hotspot
- name: Set up JDK 24 for build
uses: actions/setup-java@v3
with:
java-version: 24
distribution: adopt-hotspot
- name: Build & test the agent standalone
run: ./gradlew quickTest
- name: Build & test the full distributable
run: ./gradlew distTest
- uses: actions/upload-artifact@v4
with:
name: distributables
path: build/libs/*-dist.jar
if-no-files-found: error
- name: Publish tagged release
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/*-dist.jar
file_glob: true
tag: ${{ github.ref }}