Skip to content

Commit cc84c4c

Browse files
temporary removal
1 parent 9f78c1c commit cc84c4c

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.github/actions/cdn-deploy/action.yml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,28 @@ runs:
1818
name: compiler_wasm
1919
path: /tmp/compiler/
2020

21-
- name: Download std artifacts
22-
uses: actions/download-artifact@v8
23-
with:
24-
pattern: dist-*
25-
path: /tmp/std/
26-
merge-multiple: true
27-
28-
- name: Download cli artifacts
29-
uses: actions/download-artifact@v8
30-
with:
31-
pattern: edge-*
32-
path: /tmp/cli/
33-
merge-multiple: true
21+
# TEMPORARY (compiler-rename deploy): the std/cli build jobs are not gating this
22+
# job, so their dist-*/edge-* artifacts aren't available. A Pages deploy replaces
23+
# the whole site, so we must still ship std/ and cli/ or they'd be wiped. They're
24+
# byte-identical to what's live (the rename only touches compiler.wasm), so we
25+
# rehydrate them straight from the production CDN. --fail aborts on any missing
26+
# file rather than deploying a broken tree. Revert to the dist-*/edge-* downloads
27+
# once the full pipeline gates this job again.
28+
- name: Rehydrate std + cli from live CDN
29+
shell: bash
30+
env:
31+
CDN: https://cdn.edgepython.com
32+
run: |
33+
set -euo pipefail
34+
mkdir -p /tmp/std /tmp/cli
35+
for f in json.wasm re.wasm math.wasm test.py; do
36+
curl -fsSL "$CDN/std/$f" -o "/tmp/std/$f"
37+
done
38+
for t in x86_64-unknown-linux-musl aarch64-unknown-linux-musl x86_64-apple-darwin aarch64-apple-darwin; do
39+
curl -fsSL "$CDN/cli/edge-$t.tar.gz" -o "/tmp/cli/edge-$t.tar.gz"
40+
done
41+
echo "Rehydrated std:" && ls -l /tmp/std
42+
echo "Rehydrated cli:" && ls -l /tmp/cli
3443
3544
- name: Stage site
3645
shell: bash

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132

133133
cdn:
134134
name: Cloudflare Upload (CDN)
135-
needs: [cli-test]
135+
needs: [compiler]
136136
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
137137
runs-on: ubuntu-latest
138138
steps:

0 commit comments

Comments
 (0)