-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(Thanks to CanerKaraca23 https://github.com/CaffeineMC/lithium-fabric/pull/538/files )
- Loading branch information
Showing
7 changed files
with
81 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
name: gradle-ci | ||
name: Build CI | ||
|
||
on: [ push ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v2 | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'adopt' | ||
distribution: adopt | ||
java-version: 21 | ||
- name: Grant execute permission for gradlew | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: run test server | ||
- name: Run Test Server | ||
timeout-minutes: 5 | ||
run: ./gradlew runAutoTestServer | ||
|
||
- name: Upload build artifacts | ||
uses: actions/upload-artifact@v1 | ||
- name: Upload Build Artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: build-artifacts | ||
path: build/libs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,36 @@ | ||
name: release-artifacts | ||
name: Release CI | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 21 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Upload assets to CurseForge | ||
run: ./gradlew build | ||
env: | ||
BUILD_RELEASE: ${{ github.event.prerelease == false }} | ||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: adopt | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Upload assets to CurseForge | ||
run: ./gradlew build | ||
env: | ||
BUILD_RELEASE: ${{ github.event.prerelease == false }} | ||
|
||
- name: Upload assets to GitHub | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'build/libs/*.jar;!build/libs/*-dev.jar;LICENSE' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
name: gradle-ci | ||
name: PR CI | ||
|
||
on: [ pull_request ] | ||
|
||
jobs: | ||
build: | ||
Build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'adopt' | ||
java-version: 17 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: run test server | ||
timeout-minutes: 5 | ||
run: ./gradlew runAutoTestServer | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: adopt | ||
java-version: 21 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v4 | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build with Gradle | ||
run: ./gradlew build | ||
|
||
- name: Run Test Server | ||
timeout-minutes: 5 | ||
run: ./gradlew runAutoTestServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters