Skip to content

Commit

Permalink
actions: use brachyura
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbot16 committed Jan 30, 2022
1 parent a697aa8 commit e0e9f47
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,15 @@ jobs:
with:
distribution: 'temurin'
java-version: 17
- name: Cache Gradle packages
- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/loom-cache
~/.gradle/wrapper
~/.m2/repository
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: ${{ runner.os }}-gradle

- run: chmod +x gradlew

- name: Build Release
run: ./gradlew build --stacktrace
path: ~/.brachyura
key: ${{ runner.os }}-brachyura
restore-keys: ${{ runner.os }}-brachyura

- name: Build with Brachyura
run: java -jar .\brachyura-bootstrap-0.jar build

- name: Upload artifacts to Modrinth, Curseforge and GitHub
uses: Kir-Antipov/[email protected]
Expand Down
20 changes: 9 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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
# This workflow will build a Java project with Brachyra
# For more information see: docs/development/brachyura.md

name: Java CI with Gradle
name: Java CI with Brachyura

on: [push, pull_request]

Expand All @@ -15,13 +15,11 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Cache Gradle packages
- name: Cache Brachyura directory
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --stacktrace
path: ~/.brachyura
key: ${{ runner.os }}-brachyura
restore-keys: ${{ runner.os }}-brachyura
- name: Build with Brachyura
run: java -jar .\brachyura-bootstrap-0.jar build

0 comments on commit e0e9f47

Please sign in to comment.