Skip to content

Commit

Permalink
add build-ce7-releases workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangli20 committed Nov 3, 2023
1 parent dfd1ba2 commit 9c97bd6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build-ce7-releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Centos7 Releases

on:
workflow_dispatch:
push:
branches: ["master"]

jobs:
build-snapshot:
name: Build Snapshot
runs-on: ubuntu-latest
strategy:
matrix:
sparkver: [spark303, spark333]
blazever: [2.0.6]

steps:
- uses: actions/checkout@v4
- uses: s4u/setup-maven-action@main
- uses: actions-rust-lang/setup-rust-toolchain@v1

- uses: prompt/actions-commit-hash@v3
id: commit

- name: Cache blaze-engine-${{ matrix.sparkver }}
id: cache
uses: actions/cache@v3
with:
path: blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT-ce7-${{ steps.commit.outputs.short }}.jar
key: blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT-ce7-${{ steps.commit.outputs.short }}.jar

- uses: ScribeMD/[email protected]
if: steps.cache.outputs.cache-hit != 'true'

- uses: ScribeMD/[email protected]
if: steps.cache.outputs.cache-hit != 'true'
with:
key: docker-centos7-${{ hashFiles('dev/docker-build/centos7/Dockerfile') }}

- name: Build blaze-engine-${{ matrix.sparkver }}
if: steps.cache.outputs.cache-hit != 'true'
run: SHIM=${{ matrix.sparkver }} MODE=release ./release-docker.sh

- name: Upload blaze-engine-${{ matrix.sparkver }}
uses: actions/upload-artifact@v3
with:
name: blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT-ce7-${{ steps.commit.outputs.short }}.jar
path: target-docker/blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT.jar

0 comments on commit 9c97bd6

Please sign in to comment.