Skip to content

Commit

Permalink
remove architectury dep
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Apr 21, 2024
1 parent 3454575 commit fcc11f3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 38 deletions.
59 changes: 26 additions & 33 deletions .github/workflows/gradle_build.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
name: Gradle Build
name: Build

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
on: [ pull_request, push, workflow_dispatch ]

jobs:
build:
strategy:
matrix:
java: [ 17 ]
runs-on: ubuntu-latest
Build:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'

- name: Build with Gradle
uses: gradle/gradle-build-action@v2
java-version: 17
- name: Cache
uses: actions/cache@v4
with:
arguments: build --parallel --stacktrace
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') && !startsWith(github.ref, 'refs/heads/dev/') && !startsWith(github.ref, 'refs/tags/v') }}

- uses: actions/upload-artifact@v2
with:
name: Artifacts-neoforge
path: ./neoforge/build/libs/

- uses: actions/upload-artifact@v2
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
- name: Build with Gradle
run: |
chmod +x gradlew
./gradlew build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: Artifacts-fabric
path: ./fabric/build/libs/
name: Artifacts
path: |
${{ github.workspace }}/neoforge/build/libs
${{ github.workspace }}/fabric/build/libs
10 changes: 5 additions & 5 deletions .github/workflows/gradle_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 20
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 20
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'build.gradle') }}
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/actions/wrapper-validation@v3
- run: |
chmod +x gradlew
./gradlew build publishUnified --stacktrace
./gradlew build publishMod --stacktrace -Porg.gradle.parallel.threads=4
env:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit fcc11f3

Please sign in to comment.