-
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.21 KB
/
build-kotlin.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
name: Kotlin CI
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17', '21' ]
name: Build on Java ${{ matrix.Java }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Build with Gradle
run: |
chmod +x ./gradlew
./gradlew build --no-daemon
- name: Upload API Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.java == '17' }}
with:
name: api
path: "api/build/distributions/*.zip" # TODO: does ktor support shadowing?
- name: Upload Discord Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.java == '17' }}
with:
name: vodchat
path: "discord/build/libs/*-all.jar"
- name: Upload Reddit Artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.java == '17' }}
with:
name: vodthread
path: "reddit/build/libs/*-all.jar"