From 891914f313ea5742e71b6a42135f5451e99ca516 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 25 Jun 2023 13:19:30 +0100 Subject: Add GitHub Action CI workflow --- .github/workflows/ci.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml 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 -- cgit