Skip to content

Commit fceea7b

Browse files
committed
use static sdk
1 parent 0b7f72f commit fceea7b

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/pull_request.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,26 @@ jobs:
3131
run: |
3232
swift run containertool --repository localhost:5000/vapor Package.swift --from swift:slim
3333
34+
- name: Install the static SDK
35+
run: |
36+
swift sdk install \
37+
https://download.swift.org/swift-6.0.2-release/static-sdk/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz \
38+
--checksum aa5515476a403797223fc2aad4ca0c3bf83995d5427fb297cab1d93c68cee075
39+
3440
- name: Build the example
3541
run: |
3642
cd Examples/HelloWorldHummingbird
37-
swift package --allow-network-connections all \
43+
swift package \
44+
--allow-network-connections all \
45+
--swift-sdk x86_64-swift-linux-musl \
3846
build-container-image \
3947
--repository localhost:5000/hummingbird \
40-
--from swift:slim \
41-
--static-swift-stdlib
48+
--from scratch
4249
4350
- name: Run the example
4451
run: |
4552
uname -a
46-
docker run -p 8080:8080 localhost:5000/hummingbird
53+
docker run --platform linux/amd64 -p 8080:8080 localhost:5000/hummingbird
4754
4855
- name: Check that the service is running
4956
run: |

0 commit comments

Comments
 (0)