-
Notifications
You must be signed in to change notification settings - Fork 15
76 lines (64 loc) · 2.17 KB
/
desktop-linux.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: debugger-linux
on:
workflow_call:
outputs:
debugger:
value: ${{ jobs.publish.outputs.debugger-url }}
sample:
value: ${{ jobs.publish.outputs.sample-url }}
concurrency:
group: "publish-linux"
cancel-in-progress: true
jobs:
publish:
runs-on: ubuntu-latest
environment: publishing
outputs:
debugger-url: ${{ steps.upload-debugger.outputs.artifact-url }}
sample-url: ${{ steps.upload-sample.outputs.artifact-url }}
steps:
- uses: actions/checkout@v4
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
check-latest: true
java-version: 22
cache: 'gradle'
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v3
- name: Create local properties
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
run: echo "$LOCAL_PROPERTIES" | base64 --decode > local.properties
- name: Cache konan directory
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ runner.os }}-konan-${{ hashFiles('*.gradle.kts', 'buildSrc/*') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Create platform debugger distributable
run: ./gradlew debugger:app:packageDistributionForCurrentOS
- name: Create platform sample distributable
run: ./gradlew sample:packageDistributionForCurrentOS
- name: Upload debugger
id: upload-debugger
uses: actions/upload-artifact@v4.6.0
with:
name: Debugger_Linux
path: ./debugger/app/build/compose/binaries/main/deb/*
if-no-files-found: error
compression-level: 0
overwrite: false
- name: Upload sample
id: upload-sample
uses: actions/upload-artifact@v4.6.0
with:
name: Sample_Linux
path: ./sample/build/compose/binaries/main/deb/*
if-no-files-found: error
compression-level: 0
overwrite: false