4141 - name : Setup build
4242 uses : ./smithy-kotlin/.github/actions/setup-build
4343
44- - name : Test
44+ - name : Build and Test ${{ env.PACKAGE_NAME }} on JVM
4545 working-directory : ./smithy-kotlin
4646 shell : bash
4747 run : |
6464 - name : Setup build
6565 uses : ./smithy-kotlin/.github/actions/setup-build
6666
67- - name : Test
67+ - name : Build and Test ${{ env.PACKAGE_NAME }} on Apple platforms
6868 working-directory : ./smithy-kotlin
6969 shell : bash
7070 run : |
8585 # cross compile for: linuxX64, linuxArm64
8686 # TODO - add mingw as cross compile target
8787 linux :
88- runs-on : ubuntu-22.04
88+ runs-on : ubuntu-latest
8989 steps :
9090 - name : Checkout sources
9191 uses : actions/checkout@v4
9999 run : |
100100 ./aws-crt-kotlin/docker-images/build-all.sh
101101
102- - name : Test
102+ - name : Build and Test ${{ env.PACKAGE_NAME }} on Linux with Cross-Compile
103103 working-directory : ./smithy-kotlin
104104 shell : bash
105105 run : |
@@ -116,33 +116,30 @@ jobs:
116116 name : test-reports-${{ matrix.os }}
117117 path : ' **/build/reports'
118118
119- # all-platforms:
120- # runs-on: ${{ matrix.os }}
121- # strategy:
122- # fail-fast: false
123- # matrix:
124- # os: [ ubuntu-latest, macos-latest, windows-latest ]
125- # steps:
126- # - name: Checkout sources
127- # uses: actions/checkout@v4
128- # with:
129- # path: 'smithy-kotlin'
130- # - name: Setup build
131- # uses: ./smithy-kotlin/.github/actions/setup-build
132- # - name: Test
133- # working-directory: ./smithy-kotlin
134- # shell: bash
135- # run: |
136- # # FIXME K2. Re-enable warnings as errors after this warning is removed: https://youtrack.jetbrains.com/issue/KT-68532
137- # # echo "kotlinWarningsAsErrors=true" >> $GITHUB_WORKSPACE/local.properties
138- # ./gradlew apiCheck
139- # ./gradlew allTests
140- # - name: Save Test Reports
141- # if: failure()
142- # uses: actions/upload-artifact@v3
143- # with:
144- # name: test-reports-${{ matrix.os }}
145- # path: '**/build/reports'
119+ # windows JVM
120+ windows :
121+ runs-on : windows-latest
122+ steps :
123+ - name : Checkout sources
124+ uses : actions/checkout@v4
125+ with :
126+ path : ' smithy-kotlin'
127+
128+ - name : Setup build
129+ uses : ./smithy-kotlin/.github/actions/setup-build
130+
131+ - name : Build and Test ${{ env.PACKAGE_NAME }} on Windows JVM
132+ run : |
133+ ./gradlew apiCheck
134+ ./gradlew -P"aws.sdk.kotlin.crt.disableCrossCompile"=true build
135+ ./gradlew -P"aws.sdk.kotlin.crt.disableCrossCompile"=true allTests
136+
137+ - name : Save Test Reports
138+ if : failure()
139+ uses : actions/upload-artifact@v4
140+ with :
141+ name : test-reports-windows
142+ path : ' **/build/reports'
146143
147144 protocol-tests :
148145 runs-on : ubuntu-latest
0 commit comments