-
Notifications
You must be signed in to change notification settings - Fork 123
47 lines (38 loc) · 1.53 KB
/
build-ce7-releases.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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.7]
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: target-docker/blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT.jar
key: blaze-engine-${{matrix.sparkver}}-release-${{ matrix.blazever }}-SNAPSHOT.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 }}
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