Skip to content

Commit 365141c

Browse files
update GitHub provided workflows
1 parent 915d818 commit 365141c

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

.github/workflows/interop.yml

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- name: Restore from cache
1717
id: restore-cache
18-
uses: actions/cache@v2
18+
uses: actions/cache@v3
1919
env:
2020
VERSION: ${{ env.WIRESHARK_CACHEKEY }}
2121
with:
@@ -26,7 +26,7 @@ jobs:
2626
run: |
2727
tar xfz tshark.tar.gz
2828
./tshark -v
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v3
3030
if: steps.restore-cache.outputs.cache-hit != 'true'
3131
with:
3232
repository: wireshark/wireshark
@@ -44,7 +44,7 @@ jobs:
4444
if: steps.restore-cache.outputs.cache-hit != 'true'
4545
run: tar -czvf tshark.tar.gz -C run/ tshark
4646
- name: Upload
47-
uses: actions/upload-artifact@v2
47+
uses: actions/upload-artifact@v3
4848
with:
4949
name: wireshark
5050
path: tshark.tar.gz
@@ -69,10 +69,11 @@ jobs:
6969
STARTTIME=$(date +%s)
7070
echo $STARTTIME
7171
echo "::set-output name=starttime::$STARTTIME"
72-
- uses: actions/checkout@v2
73-
- uses: actions/setup-python@v1
72+
- uses: actions/checkout@v3
73+
- uses: actions/setup-python@v4
7474
with:
7575
python-version: 3.8
76+
cache: 'pip'
7677
- name: Determine servers
7778
id: set-servers
7879
run: |
@@ -97,7 +98,7 @@ jobs:
9798
matrix:
9899
image: [ 'quic-network-simulator', 'quic-interop-iperf-endpoint' ]
99100
steps:
100-
- uses: actions/checkout@v2
101+
- uses: actions/checkout@v3
101102
- name: Pull
102103
run: |
103104
URL="martenseemann/${{ matrix.image }}"
@@ -110,7 +111,7 @@ jobs:
110111
docker save $URL | gzip --best > ${{ matrix.image }}.tar.gz
111112
du -sh ${{ matrix.image }}.tar.gz
112113
- name: Upload result
113-
uses: actions/upload-artifact@v2
114+
uses: actions/upload-artifact@v3
114115
with:
115116
name: images-tools
116117
path: ${{ matrix.image }}.tar.gz
@@ -123,7 +124,7 @@ jobs:
123124
image: ${{ fromJson(needs.config.outputs.images) }}
124125
name: Pull ${{ matrix.image }}
125126
steps:
126-
- uses: actions/checkout@v2
127+
- uses: actions/checkout@v3
127128
- name: Run docker pull
128129
run: |
129130
URL=$(jq -r '.["${{ matrix.image }}"].image' implementations.json)
@@ -137,7 +138,7 @@ jobs:
137138
docker save $URL | gzip --best > ${{ matrix.image }}.tar.gz
138139
du -sh ${{ matrix.image }}.tar.gz
139140
- name: Upload result
140-
uses: actions/upload-artifact@v2
141+
uses: actions/upload-artifact@v3
141142
with:
142143
name: image-${{ matrix.image }}
143144
path: ${{ matrix.image }}.tar.gz
@@ -153,24 +154,25 @@ jobs:
153154
client: ${{ fromJson(needs.config.outputs.clients) }}
154155
name: (${{ matrix.server }} - ${{ matrix.client }})
155156
steps:
156-
- uses: actions/checkout@v2
157-
- uses: actions/setup-python@v1
157+
- uses: actions/checkout@v3
158+
- uses: actions/setup-python@v4
158159
with:
159160
python-version: 3.8
161+
cache: 'pip'
160162
- name: Enable IPv6 support
161163
run: sudo modprobe ip6table_filter
162164
- run: docker image ls
163165
- name: Download tools Docker images
164-
uses: actions/download-artifact@v2
166+
uses: actions/download-artifact@v3
165167
with:
166168
name: images-tools
167169
- name: Download ${{ matrix.server }} Docker image
168-
uses: actions/download-artifact@v2
170+
uses: actions/download-artifact@v3
169171
with:
170172
name: image-${{ matrix.server }}
171173
- name: Download ${{ matrix.client }} Docker image
172174
if: ${{ matrix.server != matrix.client }}
173-
uses: actions/download-artifact@v2
175+
uses: actions/download-artifact@v3
174176
with:
175177
name: image-${{ matrix.client }}
176178
- name: Load docker images
@@ -181,7 +183,7 @@ jobs:
181183
docker load --input ${{ matrix.client }}.tar.gz
182184
- run: docker image ls
183185
- name: Download Wireshark
184-
uses: actions/download-artifact@v2
186+
uses: actions/download-artifact@v3
185187
with:
186188
name: wireshark
187189
path: wireshark
@@ -223,7 +225,7 @@ jobs:
223225
target: /mnt/logs/${{ needs.config.outputs.logname }}
224226
strip_components: 1
225227
- name: Upload result
226-
uses: actions/upload-artifact@v2
228+
uses: actions/upload-artifact@v3
227229
with:
228230
name: results
229231
path: |
@@ -235,12 +237,13 @@ jobs:
235237
env:
236238
LOGNAME: ${{ needs.config.outputs.logname }}
237239
steps:
238-
- uses: actions/checkout@v2
239-
- uses: actions/setup-python@v1
240+
- uses: actions/checkout@v3
241+
- uses: actions/setup-python@v4
240242
with:
241243
python-version: 3.8
244+
cache: 'pip'
242245
- name: Download results
243-
uses: actions/download-artifact@v2
246+
uses: actions/download-artifact@v3
244247
with:
245248
name: results
246249
- name: Aggregate results
@@ -254,7 +257,7 @@ jobs:
254257
- name: Print result
255258
run: jq '.' result.json
256259
- name: Upload result to artifacts
257-
uses: actions/upload-artifact@v2
260+
uses: actions/upload-artifact@v3
258261
with:
259262
name: results
260263
path: result.json

0 commit comments

Comments
 (0)