Skip to content

Commit 27ab959

Browse files
committed
matching swfit versions
1 parent cbe4d47 commit 27ab959

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,17 @@ jobs:
8888
: "${AWS_REGION:?AWS_REGION is required}"
8989
: "${BYTESIZED_CAFE_API_URL:?BYTESIZED_CAFE_API_URL is required}"
9090
91+
- name: Set up Swift
92+
uses: swift-actions/setup-swift@v2.4.0
93+
with:
94+
swift-version: "6.2.3"
95+
9196
- name: Set up SwiftWasm
92-
uses: swiftwasm/setup-swiftwasm@v2
97+
id: swiftwasm
98+
uses: swiftwasm/setup-swiftwasm@v2.1
99+
with:
100+
tag: swift-6.2.3-RELEASE
101+
target: wasm32-unknown-wasip1
93102

94103
- name: Configure AWS credentials
95104
uses: aws-actions/configure-aws-credentials@v4
@@ -102,6 +111,8 @@ jobs:
102111
run: brew install binaryen
103112

104113
- name: Build SwiftWASM app
114+
env:
115+
SWIFT_WASM_SDK_ID: ${{ steps.swiftwasm.outputs.swift-sdk-id }}
105116
run: just wasm
106117

107118
- name: Build site

SPEC.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ The implementation is considered complete when:
234234
- The backend deploy workflow sets `HOST=0.0.0.0` and `PORT=8080` in Railway by default, unless the deploy job overrides `RAILWAY_RUNTIME_HOST` or `RAILWAY_RUNTIME_PORT`.
235235
- Secret values are synchronized with Railway through `railway variable set KEY --stdin` so they are not exposed on the command line during GitHub Actions runs.
236236
- Inline shell in the deployment and validation workflows is minimized in favor of reusable repo-root `just` recipes so the same deployment task entry points can be reused locally and in CI.
237-
- The site deploy job continues to build the SwiftWASM app and sync `Output/` to S3 using a fixed `BYTESIZED_CAFE_API_URL`.
237+
- The site deploy job installs Swift 6.2.3 with `swift-actions/setup-swift@v2.4.0`, installs the matching SwiftWasm SDK via `swiftwasm/setup-swiftwasm@v2.1` for `wasm32-unknown-wasip1`, and passes the resulting `swift-sdk-id` into `just wasm` so the deploy does not depend on the runner image's preinstalled Swift toolchain or SDK ordering.
238+
- The site deploy job continues to sync `Output/` to S3 using a fixed `BYTESIZED_CAFE_API_URL`.
238239
- After the S3 sync completes, the site deploy job invalidates the production CloudFront distribution with `CLOUDFRONT_DISTRIBUTION_ID` for `/index.html`, `/page/*`, and `/feed.rss`.
239240
- The site deploy sync no longer owns generated images, because they live in a separate generated-images bucket from the static site bucket.
240241

0 commit comments

Comments
 (0)