Skip to content

Commit 7e4cace

Browse files
authored
not use latest containers for ci (#363)
1 parent ea427f3 commit 7e4cace

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ env:
1919

2020
jobs:
2121
linux-compat:
22-
runs-on: ubuntu-latest
22+
runs-on: ubuntu-20.04 # latest
2323
strategy:
2424
matrix:
2525
image:
@@ -40,7 +40,7 @@ jobs:
4040
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build downstream -p ${{ env.PACKAGE_NAME }}
4141
4242
linux-compiler-compat:
43-
runs-on: ubuntu-latest
43+
runs-on: ubuntu-20.04 # latest
4444
strategy:
4545
matrix:
4646
compiler:
@@ -63,7 +63,7 @@ jobs:
6363
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }}
6464
6565
clang-sanitizers:
66-
runs-on: ubuntu-latest
66+
runs-on: ubuntu-20.04 # latest
6767
strategy:
6868
matrix:
6969
sanitizers: [",thread", ",address,undefined"]
@@ -75,7 +75,7 @@ jobs:
7575
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}"
7676
7777
linux-shared-libs:
78-
runs-on: ubuntu-latest
78+
runs-on: ubuntu-20.04 # latest
7979
steps:
8080
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
8181
- name: Build ${{ env.PACKAGE_NAME }}
@@ -84,7 +84,7 @@ jobs:
8484
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
8585
8686
byo-crypto:
87-
runs-on: ubuntu-latest
87+
runs-on: ubuntu-20.04 # latest
8888
steps:
8989
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages
9090
- name: Build ${{ env.PACKAGE_NAME }}
@@ -93,15 +93,15 @@ jobs:
9393
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBYO_CRYPTO=ON
9494
9595
windows:
96-
runs-on: windows-latest
96+
runs-on: windows-2022 # latest
9797
steps:
9898
- name: Build ${{ env.PACKAGE_NAME }} + consumers
9999
run: |
100100
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
101101
python builder.pyz build -p ${{ env.PACKAGE_NAME }}
102102
103103
windows-vc14:
104-
runs-on: windows-latest
104+
runs-on: windows-2019 # windows-2019 is last env with Visual Studio 2015 (v14.0)
105105
strategy:
106106
matrix:
107107
arch: [x86, x64]
@@ -112,20 +112,18 @@ jobs:
112112
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --target windows-${{ matrix.arch }} --compiler msvc-14
113113
114114
windows-shared-libs:
115-
runs-on: windows-latest
115+
runs-on: windows-2022 # latest
116116
steps:
117117
- name: Build ${{ env.PACKAGE_NAME }} + consumers
118118
run: |
119119
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')"
120120
python builder.pyz build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON
121121
122122
osx:
123-
runs-on: macos-latest
123+
runs-on: macos-11 # latest
124124
steps:
125125
- name: Build ${{ env.PACKAGE_NAME }} + consumers
126126
run: |
127127
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')"
128128
chmod a+x builder
129129
./builder build downstream -p ${{ env.PACKAGE_NAME }}
130-
131-

.github/workflows/clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push]
55
jobs:
66
clang-format:
77

8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04 # latest
99

1010
steps:
1111
- name: Checkout Sources

0 commit comments

Comments
 (0)