File tree 3 files changed +5
-8
lines changed
Examples/CloudFunctions/scripts
3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 10
10
matrix :
11
11
version :
12
12
- 5.3.3
13
- - 5.4.1
13
+ - 5.4.2
14
14
- nightly
15
15
container :
16
16
image : stevapple/swift-scf:${{ matrix.version }}
22
22
- name : Test CloudFunctions example
23
23
working-directory : Examples/CloudFunctions
24
24
run : swift build
25
- - name : Test static linking
26
- working-directory : Examples/CloudFunctions
27
- run : |
28
- yum install libxml2-static zlib-static -y
29
- swift build --product APIGateway -c release -Xswiftc -static-executable
30
25
- name : Test LocalDebugging example
31
26
working-directory : Examples/LocalDebugging/MyCloudFunction
32
27
run : swift build
43
38
- centos8
44
39
version :
45
40
- 5.3.3
46
- - 5.4.1
41
+ - 5.4.2
47
42
container :
48
43
image : swift:${{ matrix.version }}-${{ matrix.os }}
49
44
steps :
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ echo "-------------------------------------------------------------------------"
41
41
echo " Building \" $executable \" SCF"
42
42
echo " -------------------------------------------------------------------------"
43
43
docker run --rm -v " $workspace " :/workspace -w /workspace/Examples/CloudFunctions builder \
44
- bash -cl " swift build --product $executable -c release -Xswiftc -static-executable "
44
+ bash -cl " swift build --product $executable -c release"
45
45
echo " done"
46
46
47
47
echo " -------------------------------------------------------------------------"
Original file line number Diff line number Diff line change @@ -35,5 +35,7 @@ rm -rf "$target"
35
35
mkdir -p " $target "
36
36
37
37
cp " .build/release/$executable " " $target /bootstrap"
38
+ ldd " .build/release/$executable " | grep swift | awk ' {print $3}' | xargs cp -Lv -t " $target "
39
+
38
40
cd " $target "
39
41
zip ../$executable .zip *
You can’t perform that action at this time.
0 commit comments