-
-
Notifications
You must be signed in to change notification settings - Fork 33
58 lines (49 loc) · 1.66 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build
on:
push:
branches:
- main
- release/**
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
job_build_upload:
name: Build and upload distribution artifact
runs-on: ubuntu-latest
steps:
- name: Checkout current commit (${{ github.sha }})
uses: actions/checkout@v3
- name: Setup Gradle
uses: gradle/gradle-build-action@7e48093f71aa12588241894ff3695e83c4b5e4b0 # pin@v2.4.2
- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Build Gradle Plugin distribution artifacts
run: |
cd plugin-build
make all
- name: Build Kotlin Compiler artifacts
run: |
cd sentry-kotlin-compiler-plugin
make all
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ github.sha }}
path: |
${{ github.workspace }}/plugin-build/build/distributions/*.zip
${{ github.workspace }}/sentry-kotlin-compiler-plugin/build/distributions/*.zip
- name: Verify artifact contents
shell: bash
run: |
zipfile=$(ls -1 plugin-build/build/distributions | grep -v "PluginMarker")
filename=${zipfile/\.zip/}
unzip plugin-build/build/distributions/$filename.zip -d /tmp
find /tmp/$filename | grep "pom-default.xml"
unzip /tmp/$filename/$filename.jar -d /tmp/jar/
find /tmp/jar | grep "bin/sentry-cli"
cat /tmp/$filename/pom-default.xml | grep -v "dev.gradleplugins"