Skip to content

Commit 610e637

Browse files
committed
Merge branch '1.20' of https://github.com/Asek3/Oculus into 1.20
2 parents c77757a + f7d87a9 commit 610e637

File tree

2 files changed

+26
-77
lines changed

2 files changed

+26
-77
lines changed

.github/workflows/build-release.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 26 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,33 @@
1-
# This workflow will build a Java project with Brachyra
2-
# For more information see: docs/development/brachyura.md
3-
4-
name: Java CI with Brachyura
1+
name: Build mod
52

63
on: [push, pull_request]
74

85
jobs:
96
build:
107
runs-on: ubuntu-latest
11-
128
steps:
13-
- uses: actions/checkout@v2
14-
15-
- name: Set up JDK 17
16-
uses: actions/setup-java@v1
17-
with:
18-
java-version: 17
19-
20-
- name: Cache Brachyura directory
21-
uses: actions/cache@v2
22-
with:
23-
path: |
24-
.brachyura
25-
~/.brachyura
26-
key: ${{ runner.os }}-brachyura-${{ hashFiles('**/Buildscript.java') }}
27-
restore-keys: ${{ runner.os }}-brachyura
28-
29-
- name: Build with Brachyura
30-
run: java -jar brachyura-bootstrap-0.jar build
31-
32-
- name: Upload built JAR
33-
uses: actions/upload-artifact@v3
34-
with:
35-
name: iris-artifacts
36-
path: build/libs
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- uses: actions/setup-java@v3
13+
with:
14+
distribution: 'temurin'
15+
java-version: '17'
16+
- name: Initialize caches
17+
uses: actions/cache@v3
18+
with:
19+
path: |
20+
~/.gradle/caches
21+
~/.gradle/loom-cache
22+
~/.gradle/wrapper
23+
key: ${{ runner.os }}-build-snapshot-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
24+
restore-keys: |
25+
${{ runner.os }}-build-snapshot-
26+
- name: Grant execute permission for gradlew
27+
run: chmod +x gradlew
28+
- name: Build the mod
29+
run: ./gradlew --no-daemon build
30+
- uses: actions/upload-artifact@v2
31+
with:
32+
name: Oculus-Artifacts
33+
path: build/libs

0 commit comments

Comments
 (0)