2020-05-17 09:26:09 +00:00
|
|
|
# This workflow will build a Java project with Gradle
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
|
2024-03-02 03:48:35 +00:00
|
|
|
name: Build
|
2020-05-17 09:26:09 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2020-08-17 12:49:18 +00:00
|
|
|
branches:
|
|
|
|
- '**'
|
2020-05-17 09:26:09 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
2024-08-06 16:17:46 +00:00
|
|
|
runs-on: wongxx-x99-ubuntu-latest
|
2020-05-17 09:26:09 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-03 05:27:06 +00:00
|
|
|
- name: Set up JDK 17
|
2020-05-17 09:26:09 +00:00
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
2021-12-03 05:27:06 +00:00
|
|
|
java-version: '17'
|
2020-05-17 10:23:39 +00:00
|
|
|
- name: Cache Gradle User Files
|
2020-05-17 10:29:16 +00:00
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.gradle
|
|
|
|
key: ${{ runner.os }}-gradle-user-home
|
2020-05-17 10:23:39 +00:00
|
|
|
- name: Cache Gradle Files
|
2020-05-17 10:29:16 +00:00
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ./.gradle
|
|
|
|
key: ${{ runner.os }}-gradle-file
|
2020-05-17 09:26:09 +00:00
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
2020-05-25 04:33:39 +00:00
|
|
|
- name: Build
|
2024-03-02 03:48:35 +00:00
|
|
|
env:
|
|
|
|
ARCLIGHT_FILES_TOKEN: ${{ secrets.ARCLIGHT_FILES_TOKEN }}
|
2020-05-30 10:02:34 +00:00
|
|
|
run: |
|
2024-08-06 17:14:23 +00:00
|
|
|
./gradlew cleanBuild remapSpigotJar idea --no-daemon -i --stacktrace --refresh-dependencies --continue
|
|
|
|
./gradlew build collect uploadFiles --no-daemon -i --stacktrace --continue
|
2020-05-17 09:26:09 +00:00
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: Arclight
|
2020-05-30 10:02:34 +00:00
|
|
|
path: ./build/libs/*.jar
|
2020-05-17 09:26:09 +00:00
|
|
|
|