This repository has been archived by the owner on Sep 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
47 lines (47 loc) · 2.15 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
name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Git Repository
uses: actions/[email protected]
- name: Validate Gradle Wrapper
uses: gradle/[email protected]
- name: Set up JDK (GraalVM)
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '17'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Pull Gradle Cache
uses: actions/[email protected]
id: gradle-cache
with:
path: ~/.gradle
key: ${{ runner.os }}-maven-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}-java-${{ matrix.java }}
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "Github Actions"
chmod +x gradlew
- name: Patch
run: |
./gradlew -Dorg.gradle.jvmargs="-Dfile.encoding=UTF-8 -Dgraal.CompilerConfiguration=community -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true -Dgraal.SpeculativeGuardMovement=true -Dgraal.WriteableCodeCache=true --add-modules jdk.incubator.vector" applyPatches --stacktrace --no-daemon
- name: Build
run: |
./gradlew -Dorg.gradle.jvmargs="-Dfile.encoding=UTF-8 -Dgraal.CompilerConfiguration=community -Dgraal.UsePriorityInlining=true -Dgraal.Vectorization=true -Dgraal.OptDuplication=true -Dgraal.SpeculativeGuardMovement=true -Dgraal.WriteableCodeCache=true --add-modules jdk.incubator.vector" createReobfPaperclipJar --stacktrace --no-daemon
- name: Archive Paperclip
uses: actions/[email protected]
with:
name: Mirai-1.19.2
path: build/libs/mirai-paperclip-1.19.2-R0.1-SNAPSHOT-reobf.jar
# - name: Release
# if: github.ref_name == 'ver/1.19'
# uses: marvinpinto/[email protected]
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# automatic_release_tag: '1.19'
# prerelease: false
# title: 'Mirai 1.19'
# files: build/libs/mirai-paperclip-1.19-R0.1-SNAPSHOT-reobf.jar