mirror of
https://github.com/ViaVersion/ViaLoader.git
synced 2024-11-15 10:45:28 +01:00
Added GH workflow for building
This commit is contained in:
parent
041b7a86f7
commit
727a7359be
25
.github/workflows/build.yml
vendored
Normal file
25
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
name: build
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-22.04
|
||||
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Validate Gradle Wrapper
|
||||
uses: gradle/wrapper-validation-action@v1
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: temurin
|
||||
java-version: 21
|
||||
check-latest: true
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
- name: Upload Artifacts to GitHub
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Artifacts
|
||||
path: build/libs/
|
@ -17,7 +17,7 @@ repositories {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("net.raphimc:ViaLoader:2.2.10") // Get latest version from releases
|
||||
implementation("net.raphimc:ViaLoader:x.x.x") // Get latest version from releases
|
||||
}
|
||||
```
|
||||
|
||||
@ -33,13 +33,13 @@ dependencies {
|
||||
<dependency>
|
||||
<groupId>net.raphimc</groupId>
|
||||
<artifactId>ViaLoader</artifactId>
|
||||
<version>2.2.10</version> <!-- Get latest version from releases -->
|
||||
<version>x.x.x</version> <!-- Get latest version from releases -->
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
|
||||
### Jar File
|
||||
If you just want the latest jar file you can download it from this [Jenkins](https://ci.viaversion.com/view/All/job/ViaLoader/).
|
||||
If you just want the latest jar file you can download it from [GitHub Actions](https://github.com/RaphiMC/ViaLoader/actions/workflows/build.yml) or [Lenni0451's Jenkins](https://build.lenni0451.net/job/ViaLoader/).
|
||||
|
||||
## Usage
|
||||
To use ViaLoader in your project you need to decide what components of Via* you want to use.
|
||||
|
Loading…
Reference in New Issue
Block a user