Skip to content

Commit a32d42e

Browse files
Andrea-ScuderiAndrea Scuderi
andauthored
Update swift to version 5.10.1 (#12)
* Update swift to version 5.10.1 * Update GHA --------- Co-authored-by: Andrea Scuderi <[email protected]>
1 parent 35b8878 commit a32d42e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+194
-49
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: 'Build Examples'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
env:
11+
AWS_ENABLE_LOGGING : "true"
12+
AWS_LOG_LEVEL: "trace"
13+
14+
jobs:
15+
build-examples:
16+
name: 'Build examples'
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
image:
21+
- swift:5.10.1-amazonlinux2
22+
services:
23+
localstack:
24+
image: localstack/localstack
25+
container:
26+
image: ${{ matrix.image }}
27+
env:
28+
LOCALSTACK_ENDPOINT : "http://localstack:4566"
29+
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
30+
# Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest
31+
defaults:
32+
run:
33+
shell: bash
34+
35+
steps:
36+
# Checkout the repository to the GitHub Actions runner
37+
- name: Setup
38+
run: |
39+
yum -y update && yum -y install git make zip
40+
- name: Git Clone & Checkout
41+
run: |
42+
git clone https://github.com/swift-serverless/Breeze.git $GITHUB_WORKSPACE/src
43+
echo $BRANCH_NAME
44+
cd $GITHUB_WORKSPACE/src && git checkout $BRANCH_NAME
45+
mkdir $GITHUB_WORKSPACE/cache
46+
- name: Build ItemAPI
47+
run: |
48+
cd $GITHUB_WORKSPACE/src/Examples/ItemAPI/BreezeItemAPI
49+
swift package archive -c release --cache-path $GITHUB_WORKSPACE/cache
50+
- name: Build WebHook
51+
run: |
52+
cd $GITHUB_WORKSPACE/src/Examples/Webhook/BreezeWebHook
53+
swift package archive -c release --cache-path $GITHUB_WORKSPACE/cache
54+
- name: Build GitHubWebHook
55+
run: |
56+
cd $GITHUB_WORKSPACE/src/Examples/GitHubWebhook/BreezeGitHubWebHook
57+
swift package archive -c release --cache-path $GITHUB_WORKSPACE/cache

.github/workflows/meterian.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
name: Meterian Scanner workflow
44

5-
on: push
5+
on:
6+
push:
7+
branches:
8+
- main
69

710
jobs:
811
meterian_scan:

.github/workflows/swift-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
strategy:
1919
matrix:
2020
image:
21-
- swift:5.7.3-amazonlinux2
21+
- swift:5.7.3
22+
- swift:5.8.1
23+
- swift:5.9.2
24+
- swift:5.10.1
2225
services:
2326
localstack:
2427
image: localstack/localstack
@@ -37,7 +40,7 @@ jobs:
3740
uses: actions/checkout@v3
3841
- name: Setup
3942
run: |
40-
yum -y update && yum -y install git make curl yq
43+
export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q install -y make curl wget
4144
- name: Test
4245
run: |
4346
make test

Docs/GenerateGithubWebhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Define a configuration file with the following format:
4040
```yml
4141
service: swift-breeze-github-webhook
4242
awsRegion: us-east-1
43-
swiftVersion: 5.7.3
43+
swiftVersion: 5.10.1
4444
swiftConfiguration: release
4545
packageName: BreezeGitHubWebHook
4646
buildPath: build

Docs/GenerateLambdaAPI.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Define a configuration file with the following format:
140140
```yml
141141
service: swift-breeze-rest-item-api
142142
awsRegion: us-east-1
143-
swiftVersion: 5.7.3
143+
swiftVersion: 5.10.1
144144
swiftConfiguration: release
145145
packageName: BreezeItemAPI
146146
buildPath: build
@@ -193,7 +193,7 @@ output:
193193
194194
service: swift-breeze-rest-item-api
195195
awsRegion: us-east-1
196-
swiftVersion: 5.7.3
196+
swiftVersion: 5.10.1
197197
swiftConfiguration: release
198198
packageName: BreezeItemAPI
199199
buildPath: build

Docs/GenerateWebhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Define a configuration file with the following format:
3535
```yml
3636
service: swift-breeze-webhook
3737
awsRegion: us-east-1
38-
swiftVersion: 5.7.3
38+
swiftVersion: 5.10.1
3939
swiftConfiguration: release
4040
packageName: BreezeWebHook
4141
buildPath: build

Examples/GitHubWebhook/BreezeGitHubWebHook/Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ let package = Package(
1313
],
1414
dependencies: [
1515
.package(url: "https://github.com/apple/swift-crypto.git", from: "1.0.0"),
16-
.package(url: "https://github.com/swift-serverless/BreezeLambdaWebHook.git", from: "0.4.0")
16+
.package(url: "https://github.com/swift-serverless/BreezeLambdaWebHook.git", from: "0.5.0"),
17+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2")
1718
],
1819
targets: [
1920
.executableTarget(

Examples/GitHubWebhook/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
FROM swift:5.7.3-amazonlinux2 as builder
1+
FROM swift:5.10.1-amazonlinux2 as builder
22
RUN yum -y update && \
33
yum -y install git zip

Examples/GitHubWebhook/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
SWIFT_VERSION=5.7.3
15+
SWIFT_VERSION=5.10.1
1616
SWIFT_DOCKER_IMAGE=swift-amazonlinux2-builder:$(SWIFT_VERSION)
1717
SWIFT_CONFIGURATION=release
1818

Examples/ItemAPI/BreezeItemAPI/Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ let package = Package(
1212
.executable(name: "ItemAPI", targets: ["ItemAPI"]),
1313
],
1414
dependencies: [
15-
.package(url: "https://github.com/swift-serverless/BreezeLambdaDynamoDBAPI.git", from: "0.4.0")
15+
.package(url: "https://github.com/swift-serverless/BreezeLambdaDynamoDBAPI.git", from: "0.5.0"),
16+
.package(url: "https://github.com/swift-server/swift-aws-lambda-runtime.git", from: "1.0.0-alpha.2")
1617
],
1718
targets: [
1819
.executableTarget(

0 commit comments

Comments
 (0)