Skip to content

Commit 1f354f3

Browse files
committed
fix extracted sha
1 parent 23e21ab commit 1f354f3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/cpp-golang-rust.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
backend-type: metal
7373

7474
test-curve:
75-
name: Test Curve on ${{ matrix.backend }} with ${{ matrix.runner_os }}
75+
name: Test Curve on ${{ matrix.backend }} with ${{ matrix.os }}
7676
runs-on: ${{ matrix.runner }}
7777
needs: [check-changed-files, check-format, extract-cuda-backend-branch, extract-metal-backend-branch]
7878
strategy:
@@ -82,10 +82,12 @@ jobs:
8282
- backend: cuda
8383
backend_upper: CUDA
8484
secret_key: CUDA_PULL_KEY
85+
os: Linux
8586
runner: 'self-hosted, Linux, X64, icicle'
8687
- backend: metal
8788
backend_upper: METAL
8889
secret_key: METAL_PULL_KEY
90+
os: macOS
8991
runner: 'self-hosted, macOS, arm64, icicle, metal'
9092
curve:
9193
- name: bn254
@@ -127,12 +129,12 @@ jobs:
127129
run: |
128130
BACKEND_SHA=$(git rev-parse HEAD)
129131
echo "Backend Commit SHA: $BACKEND_SHA"
130-
echo "${{ matrix.backend }}-backend-sha=$BACKEND_SHA" >> $GITHUB_ENV
132+
echo "extracted-backend-sha=$BACKEND_SHA" >> $GITHUB_OUTPUT
131133
- name: Set ${{ matrix.backend_upper }} backend flag
132134
if: needs.check-changed-files.outputs.golang == 'true' || needs.check-changed-files.outputs.cpp == 'true' || needs.check-changed-files.outputs.rust == 'true'
133135
id: backend-flag
134136
run: |
135-
BACKEND_SHA=${{ env.${{ matrix.backend }}-backend-sha }}
137+
BACKEND_SHA=${{ steps.extract-backend-sha.outputs.extracted-backend-sha }}
136138
CURVE=${{ matrix.curve.name }}
137139
COMMIT_FILE="gh_commit_sha_${CURVE}_${BACKEND_SHA}"
138140
if [ "${{ needs.extract-${{ matrix.backend }}-backend-branch.outputs.${{ matrix.backend }}-backend-branch }}" == "main" ]; then

0 commit comments

Comments
 (0)