Skip to content

Commit c524d3a

Browse files
author
Justin Boswell
authored
Added job for Windows+VS14 (aws#123)
* Added job for Windows+VC14 * Avoid long path problems * updated builder to v0.6.5
1 parent 421a69a commit c524d3a

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
- '!master'
88

99
env:
10-
BUILDER_VERSION: v0.6.1
10+
BUILDER_VERSION: v0.6.5
1111
BUILDER_SOURCE: releases
1212
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net
1313
PACKAGE_NAME: aws-crt-cpp
@@ -41,7 +41,7 @@ jobs:
4141
export DOCKER_IMAGE=docker.pkg.github.com/awslabs/aws-crt-builder/aws-crt-al2-x64:${{ env.BUILDER_VERSION }}
4242
docker pull $DOCKER_IMAGE
4343
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --spec=downstream
44-
44+
4545
clang-compat:
4646
runs-on: ubuntu-latest
4747
strategy:
@@ -60,7 +60,7 @@ jobs:
6060
runs-on: ubuntu-latest
6161
strategy:
6262
matrix:
63-
version: [4.8, 5, 6, 7, 8]
63+
version: [4.8, 5, 6, 7, 8]
6464
steps:
6565
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
6666
- name: Build ${{ env.PACKAGE_NAME }}
@@ -70,11 +70,32 @@ jobs:
7070
docker pull $DOCKER_IMAGE
7171
docker run --env GITHUB_REF $DOCKER_IMAGE build -p ${{ env.PACKAGE_NAME }} --compiler=gcc-${{ matrix.version }}
7272
73-
windows:
73+
windows-vs16:
7474
runs-on: windows-latest
7575
steps:
7676
- name: Build ${{ env.PACKAGE_NAME }} + consumers
7777
run: |
78+
md D:\a\work
79+
cd D:\a\work
80+
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
81+
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
82+
83+
windows-vs14:
84+
runs-on: windows-latest
85+
strategy:
86+
matrix:
87+
arch: [x86, x64]
88+
steps:
89+
- uses: ilammy/msvc-dev-cmd@v1
90+
with:
91+
toolset: 14.0
92+
arch: ${{ matrix.arch }}
93+
uwp: false
94+
spectre: true
95+
- name: Build ${{ env.PACKAGE_NAME }} + consumers
96+
run: |
97+
md D:\a\work
98+
cd D:\a\work
7899
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
79100
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --spec=downstream
80101
@@ -93,13 +114,10 @@ jobs:
93114
strategy:
94115
matrix:
95116
arch: [linux-armv6, linux-armv7, linux-arm64, android-armv7]
96-
117+
97118
steps:
98119
- name: Build ${{ env.PACKAGE_NAME }} + consumers
99120
run: |
100121
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
101122
chmod a+x builder
102123
./builder build -p aws-crt-cpp --spec=downstream --target=${{matrix.arch}} run_tests=false
103-
104-
105-

0 commit comments

Comments
 (0)