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 e482e56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
15 changes: 6 additions & 9 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,10 +18,13 @@ 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:
Expand All @@ -36,9 +39,3 @@ jobs:
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"

0 comments on commit e482e56

Please sign in to comment.