This is an automated email from the ASF dual-hosted git repository.
csy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/auron.git
The following commit(s) were added to refs/heads/master by this push:
new 84936b2a [AURON-1245][FOLLOWUP] Restore commit hash in artifact name
using git rev-parse (#1246)
84936b2a is described below
commit 84936b2ad7c30743e0b6c42e6950fcca81bfe15a
Author: Ruilei Ma <[email protected]>
AuthorDate: Mon Sep 1 21:13:58 2025 +0800
[AURON-1245][FOLLOWUP] Restore commit hash in artifact name using git
rev-parse (#1246)
---
.github/workflows/build-arm-releases.yml | 6 ++++++
.github/workflows/build-ce7-releases.yml | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/.github/workflows/build-arm-releases.yml
b/.github/workflows/build-arm-releases.yml
index eaaf9a36..62932a46 100644
--- a/.github/workflows/build-arm-releases.yml
+++ b/.github/workflows/build-arm-releases.yml
@@ -51,6 +51,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 0
submodules: recursive
- uses: actions/setup-java@v4
with:
@@ -76,6 +78,10 @@ jobs:
osclassfier=$(./build/mvn help:evaluate
-Dexpression=os.detected.classifier -q -DforceStdout -P${{ matrix.sparkver }})
echo "osclassfier=$osclassfier" >> $GITHUB_ENV
+ - name: Get short commit hash
+ id: commit
+ run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+
- name: Build auron-${{ matrix.sparkver }}_${{ matrix.scalaver }}
run: |
sed -i 's/opt-level = 1/opt-level = 0/g' Cargo.toml # use opt-level 0
diff --git a/.github/workflows/build-ce7-releases.yml
b/.github/workflows/build-ce7-releases.yml
index e16a3cd2..47fc02b1 100644
--- a/.github/workflows/build-ce7-releases.yml
+++ b/.github/workflows/build-ce7-releases.yml
@@ -49,6 +49,8 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
+ ref: ${{ github.event.pull_request.head.sha }}
+ fetch-depth: 0
submodules: recursive
- uses: ./.github/actions/setup-rust-toolchain
@@ -58,6 +60,10 @@ jobs:
osclassfier=$(./build/mvn help:evaluate
-Dexpression=os.detected.classifier -q -DforceStdout -P${{ matrix.sparkver }})
echo "osclassfier=$osclassfier" >> $GITHUB_ENV
+ - name: Get short commit hash
+ id: commit
+ run: echo "short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
+
- name: Cache auron-${{ matrix.sparkver }}_${{ matrix.scalaver }}
id: cache
uses: actions/cache@v3