aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2023-06-25 13:19:30 +0100
committerLuck <git@lucko.me>2023-06-25 13:20:36 +0100
commit891914f313ea5742e71b6a42135f5451e99ca516 (patch)
treeac047c3c8dacf57d505dfe12e74d0502e0e63ec1
parent7bcd193a9d5ebbc08abf11b0f6f28b5e261c7368 (diff)
downloadspark-891914f313ea5742e71b6a42135f5451e99ca516.tar.gz
spark-891914f313ea5742e71b6a42135f5451e99ca516.tar.bz2
spark-891914f313ea5742e71b6a42135f5451e99ca516.zip
Add GitHub Action CI workflow
-rw-r--r--.github/workflows/ci.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..e6c9384
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,45 @@
+name: Build Gradle
+
+on:
+ push:
+ branches:
+ - 'master'
+ tags:
+ - 'v*'
+ pull_request:
+ branches:
+ - 'master'
+
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: ${{ github.repository }}
+
+jobs:
+ build-gradle:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+
+ - name: validate gradle wrapper
+ uses: gradle/wrapper-validation-action@v1
+
+ - uses: actions/setup-java@v3
+ with:
+ distribution: 'temurin'
+ java-version: '17'
+
+ - name: Setup Gradle
+ uses: gradle/gradle-build-action@v2
+
+ - name: Run build with Gradle wrapper
+ run: ./gradlew build
+
+ - name: Upload all artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: jars
+ path: |
+ **/build/libs/spark-1.*-*.jar