summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorosfanbuff632022-11-17 19:14:03 +0000
committerAizistral2022-11-17 20:16:43 +0100
commit1f3a8dd3633a0d44e8b55a885687780bd54fd8db (patch)
treec4da0b29488b1f02687710efa3a5768538e38d08 /.github/workflows
parent603173594eaee1347dbfe72af2dfaa2f6ce9b7d1 (diff)
Bump deps (#298)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml40
-rw-r--r--.github/workflows/gitlabsync.yml2
2 files changed, 41 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..c0ef2bf
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,40 @@
+# Automatically build the project and run any configured tests for every push
+# and submitted pull request. This can help catch issues that only occur on
+# certain platforms or Java versions, and provides a first line of defence
+# against bad commits.
+
+name: build
+on: [pull_request, push]
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ # Use these Java versions
+ java: [
+ 17, # Current Java LTS & minimum supported by Minecraft
+ ]
+ # and run on both Linux and Windows
+ os: [ubuntu-20.04, windows-2022]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: checkout repository
+ uses: actions/checkout@v3
+ - name: validate gradle wrapper
+ uses: gradle/wrapper-validation-action@v1
+ - name: setup jdk ${{ matrix.java }}
+ uses: actions/setup-java@v3
+ with:
+ distribution: temurin
+ java-version: ${{ matrix.java }}
+ - name: make gradle wrapper executable
+ if: ${{ runner.os != 'Windows' }}
+ run: chmod +x ./gradlew
+ - name: build
+ run: ./gradlew build
+ - name: capture build artifacts
+ if: ${{ runner.os == 'Linux' && matrix.java == '17' }} # Only upload artifacts built from latest java on one OS
+ uses: actions/upload-artifact@v2
+ with:
+ name: Artifacts
+ path: build/libs/
diff --git a/.github/workflows/gitlabsync.yml b/.github/workflows/gitlabsync.yml
index 4e7582f..9a05280 100644
--- a/.github/workflows/gitlabsync.yml
+++ b/.github/workflows/gitlabsync.yml
@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
name: Git Repo Sync
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wangchucheng/git-repo-sync@v0.1.0