Skip to content

Commit 7cd3ed9

Browse files
committed
Add linux platform
1 parent 8651038 commit 7cd3ed9

File tree

1 file changed

+44
-34
lines changed

1 file changed

+44
-34
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ jobs:
3737
uses: actions/checkout@v4
3838
with:
3939
path: 'smithy-kotlin'
40+
4041
- name: Setup build
4142
uses: ./smithy-kotlin/.github/actions/setup-build
43+
4244
- name: Test
4345
working-directory: ./smithy-kotlin
4446
shell: bash
@@ -58,8 +60,10 @@ jobs:
5860
uses: actions/checkout@v4
5961
with:
6062
path: 'smithy-kotlin'
63+
6164
- name: Setup build
6265
uses: ./smithy-kotlin/.github/actions/setup-build
66+
6367
- name: Test
6468
working-directory: ./smithy-kotlin
6569
shell: bash
@@ -69,47 +73,48 @@ jobs:
6973
./gradlew apiCheck
7074
./gradlew -Paws.sdk.kotlin.crt.disableCrossCompile=true build
7175
./gradlew -Paws.sdk.kotlin.crt.disableCrossCompile=true allTests
76+
7277
- name: Save Test Reports
7378
if: failure()
7479
uses: actions/upload-artifact@v3
7580
with:
7681
name: test-reports-${{ matrix.os }}
7782
path: '**/build/reports'
7883

79-
# # build and test for targets: jvm, linuxX64
80-
# # cross compile for: linuxX64, linuxArm64
81-
# # TODO - add mingw as cross compile target
82-
# linux:
83-
# runs-on: ubuntu-22.04
84-
# steps:
85-
# - name: Checkout sources
86-
# uses: actions/checkout@v4
87-
# with:
88-
# path: 'smithy-kotlin'
89-
#
90-
# - name: Setup build
91-
# uses: ./smithy-kotlin/.github/actions/setup-build
92-
#
93-
# - name: Configure CRT Docker Images
94-
# run: |
95-
# ./aws-crt-kotlin/docker-images/build-all.sh
96-
#
97-
# - name: Test
98-
# working-directory: ./smithy-kotlin
99-
# shell: bash
100-
# run: |
101-
# # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532
102-
# # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
103-
# ./gradlew apiCheck
104-
# ./gradlew build
105-
# ./gradlew allTests
106-
#
107-
# - name: Save Test Reports
108-
# if: failure()
109-
# uses: actions/upload-artifact@v3
110-
# with:
111-
# name: test-reports-${{ matrix.os }}
112-
# path: '**/build/reports'
84+
# build and test for targets: jvm, linuxX64
85+
# cross compile for: linuxX64, linuxArm64
86+
# TODO - add mingw as cross compile target
87+
linux:
88+
runs-on: ubuntu-22.04
89+
steps:
90+
- name: Checkout sources
91+
uses: actions/checkout@v4
92+
with:
93+
path: 'smithy-kotlin'
94+
95+
- name: Setup build
96+
uses: ./smithy-kotlin/.github/actions/setup-build
97+
98+
- name: Configure CRT Docker Images
99+
run: |
100+
./aws-crt-kotlin/docker-images/build-all.sh
101+
102+
- name: Test
103+
working-directory: ./smithy-kotlin
104+
shell: bash
105+
run: |
106+
# FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532
107+
# echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
108+
./gradlew apiCheck
109+
./gradlew build
110+
./gradlew allTests
111+
112+
- name: Save Test Reports
113+
if: failure()
114+
uses: actions/upload-artifact@v3
115+
with:
116+
name: test-reports-${{ matrix.os }}
117+
path: '**/build/reports'
113118

114119
# all-platforms:
115120
# runs-on: ${{ matrix.os }}
@@ -146,8 +151,10 @@ jobs:
146151
uses: actions/checkout@v4
147152
with:
148153
path: 'smithy-kotlin'
154+
149155
- name: Setup build
150156
uses: ./smithy-kotlin/.github/actions/setup-build
157+
151158
- name: Test
152159
working-directory: ./smithy-kotlin
153160
shell: bash
@@ -162,14 +169,17 @@ jobs:
162169
uses: actions/checkout@v4
163170
with:
164171
path: 'smithy-kotlin'
172+
165173
- name: Setup build
166174
uses: ./smithy-kotlin/.github/actions/setup-build
175+
167176
- name: Checkout aws-sdk-kotlin
168177
uses: ./aws-kotlin-repo-tools/.github/actions/checkout-head
169178
with:
170179
# smithy-kotlin is checked out as a sibling dir which will automatically make it an included build
171180
path: 'aws-sdk-kotlin'
172181
repository: 'awslabs/aws-sdk-kotlin'
182+
173183
- name: Build and Test aws-sdk-kotlin downstream
174184
working-directory: ./smithy-kotlin
175185
run: |

0 commit comments

Comments
 (0)