2021-07-12 04:10:13 +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
|
|
|
|
|
|
|
|
name: Java CI with Gradle
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-01-06 03:09:56 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-07-12 04:10:13 +00:00
|
|
|
- name: Set up JDK 16
|
2023-01-06 03:09:56 +00:00
|
|
|
uses: actions/setup-java@v3
|
2021-07-12 04:10:13 +00:00
|
|
|
with:
|
|
|
|
java-version: '16'
|
2023-01-06 03:25:03 +00:00
|
|
|
distribution: 'temurin'
|
2021-07-12 04:10:13 +00:00
|
|
|
|
|
|
|
- name: Grant execute permission for gradlew
|
|
|
|
run: chmod +x gradlew
|
|
|
|
|
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew build
|
2021-07-12 04:25:32 +00:00
|
|
|
|
|
|
|
- name: Build (fabric) with Gradle
|
|
|
|
run: ./gradlew build -Pbaritone.fabric_build
|
2021-09-22 18:22:00 +00:00
|
|
|
|
2021-09-24 01:10:52 +00:00
|
|
|
- name: Build (forge) with Gradle
|
2021-09-22 18:22:00 +00:00
|
|
|
run: ./gradlew build -Pbaritone.forge_build -Ploom.platform=forge
|
2022-04-14 17:08:42 +00:00
|
|
|
|
2021-07-12 04:10:13 +00:00
|
|
|
- name: Archive Artifacts
|
2023-01-06 03:09:56 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-07-12 04:10:13 +00:00
|
|
|
with:
|
|
|
|
name: Artifacts
|
|
|
|
path: dist/
|
|
|
|
|
|
|
|
- name: Archive mapping.txt
|
2023-01-06 03:09:56 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-07-12 04:10:13 +00:00
|
|
|
with:
|
|
|
|
name: Mappings
|
|
|
|
path: build/tmp/proguard/mapping.txt
|