Skip to content

Commit 3657f5a

Browse files
committed
release: run independent Mac platform check
1 parent f680497 commit 3657f5a

1 file changed

Lines changed: 57 additions & 0 deletions

File tree

.github/workflows/candidate.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Candidate dress rehearsal
2+
3+
on:
4+
workflow_run:
5+
workflows: [CI]
6+
types: [completed]
7+
branches: [main]
8+
9+
permissions:
10+
contents: write
11+
12+
# Temporary transport for the dedicated Mac account's host allowlist. This is
13+
# one independent four-assertion sandbox check. It has no release gate, Linux
14+
# or Windows job, evidence system, promotion step, or publication step.
15+
jobs:
16+
accept-macos:
17+
name: Fresh install and start — Mac
18+
if: >-
19+
github.event.workflow_run.conclusion == 'success' &&
20+
github.event.workflow_run.event == 'push' &&
21+
github.event.workflow_run.head_repository.full_name == github.repository &&
22+
github.event.workflow_run.head_commit.message == 'release: run independent Mac platform check'
23+
runs-on: [1helm-macos-phase4]
24+
timeout-minutes: 15
25+
steps:
26+
- uses: actions/checkout@v4
27+
with:
28+
ref: 11f1f73cf18c7c59609ab98c43ce8d8098de66d8
29+
fetch-depth: 1
30+
persist-credentials: false
31+
clean: false
32+
- name: Verify retained files and run the four checks
33+
env:
34+
GH_TOKEN: ${{ github.token }}
35+
HARNESS_SHA: ${{ github.event.workflow_run.head_sha }}
36+
HELM_RELEASE_DIST: ${{ github.workspace }}/dist
37+
HELM_RELEASE_VERSION: 1.0.0
38+
EXPECTED_DMG_SHA256: 38531c1949b24e4c01882ebb18c75df9fea04b97f3deffe57d4e8e2090bc45ab
39+
EXPECTED_ZIP_SHA256: d991bc508e34dc38ba7a763d7bfbac06ad1f97d1174c4450eadc12b60b501ea4
40+
run: |
41+
set -euo pipefail
42+
test "$(shasum -a 256 "$HELM_RELEASE_DIST/1Helm-1.0.0-arm64.dmg" | awk '{print $1}')" = "$EXPECTED_DMG_SHA256"
43+
test "$(shasum -a 256 "$HELM_RELEASE_DIST/1Helm-1.0.0-mac-arm64.zip" | awk '{print $1}')" = "$EXPECTED_ZIP_SHA256"
44+
curl --fail --location \
45+
--header "Authorization: Bearer $GH_TOKEN" \
46+
--header 'Accept: application/vnd.github.raw+json' \
47+
--output "$RUNNER_TEMP/fresh-install-macos.sh" \
48+
"https://api.github.com/repos/$GITHUB_REPOSITORY/contents/ops/release/fresh-install-macos.sh?ref=$HARNESS_SHA"
49+
bash "$RUNNER_TEMP/fresh-install-macos.sh"
50+
- name: Upload the exact tested Mac files
51+
env:
52+
GH_TOKEN: ${{ github.token }}
53+
run: |
54+
gh release upload v1.0.0 \
55+
dist/1Helm-1.0.0-arm64.dmg \
56+
dist/1Helm-1.0.0-mac-arm64.zip \
57+
--repo "$GITHUB_REPOSITORY" --clobber

0 commit comments

Comments
 (0)