Skip to content

Commit

Permalink
Gitlab CI Pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreSchwang committed Apr 20, 2021
1 parent 337c699 commit 1908d40
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 4 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Addon
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
# Add Execute permissions to gradle wrapper
- name: Change wrapper permissions
run: 'chmod +x gradlew'
# Build the addon
- name: Download LabyMod-API
run: 'sh gradlew downloadAPI --no-daemon'
# Build the addon
- name: Build with Gradle
run: 'sh gradlew build --no-daemon'
# Upload the built addon
- uses: actions/upload-artifact@v2
with:
name: 'WorldEdit IDs for 1.16'
path: ./build/libs/*.jar
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
maven { url = 'https://repo.spongepowered.org/maven' }
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
jcenter()
mavenCentral()
maven { url = 'https://files.minecraftforge.net/maven' }
}
dependencies {
classpath group: 'com.github.ImpactDevelopment', name: 'ForgeGradle', version: '3.0.115'
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
systemProp.org.gradle.internal.http.connectionTimeout=120000
systemProp.org.gradle.internal.http.socketTimeout=120000
org.gradle.jvmargs=-Xmx4608m
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = 'addon-example'
rootProject.name = 'buildteam-addon'

0 comments on commit 1908d40

Please sign in to comment.