Skip to content

Commit

Permalink
fix 1.20.1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian8j2 committed Jan 16, 2024
1 parent dc6072e commit d5a10d3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
name: Build
on:
push:
branches: [ "latest" ]
branches: [ "dev-1.20" ]
pull_request:
branches: [ "latest" ]

Expand All @@ -18,27 +18,24 @@ permissions:
jobs:
build:

runs-on: windows-latest

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Download outdated Boxlib files
run: ./download-boxlib-files.sh

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Build with Gradle
run: ./gradlew build
run: chmod +x gradlew && ./gradlew build

- name: Upload fabric
uses: actions/upload-artifact@v3
with:
name: fabric-build
path: fabric/build/libs

- name: Upload forge
uses: actions/upload-artifact@v3
with:
name: forge-build
path: forge/build/libs
12 changes: 12 additions & 0 deletions download-boxlib-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

download_boxlib() {
mkdir -p ".gradle/loom-cache/remapped_mods/dev/boxadactle/boxlib/$2/5.4.2/"
pushd "$_"
curl --remote-name-all https://maven.boxadactle.dev/dev/boxadactle/$1/5.4.2/$2-5.4.2{.pom,.module,.jar,-sources.jar}
popd
}

download_boxlib "Boxlib" "BoxLib"
download_boxlib "Boxlib-fabric" "BoxLib-fabric"
download_boxlib "Boxlib-forge" "BoxLib-forge"
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx1G
org.gradle.jvmargs=-Xmx4G

minecraft_version=1.20.1

Expand Down

0 comments on commit d5a10d3

Please sign in to comment.