Skip to content

Commit

Permalink
update GitHub provided workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Dec 18, 2022
1 parent 915d818 commit 365141c
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions .github/workflows/interop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Restore from cache
id: restore-cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
VERSION: ${{ env.WIRESHARK_CACHEKEY }}
with:
Expand All @@ -26,7 +26,7 @@ jobs:
run: |
tar xfz tshark.tar.gz
./tshark -v
- uses: actions/checkout@v2
- uses: actions/checkout@v3
if: steps.restore-cache.outputs.cache-hit != 'true'
with:
repository: wireshark/wireshark
Expand All @@ -44,7 +44,7 @@ jobs:
if: steps.restore-cache.outputs.cache-hit != 'true'
run: tar -czvf tshark.tar.gz -C run/ tshark
- name: Upload
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wireshark
path: tshark.tar.gz
Expand All @@ -69,10 +69,11 @@ jobs:
STARTTIME=$(date +%s)
echo $STARTTIME
echo "::set-output name=starttime::$STARTTIME"
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
- name: Determine servers
id: set-servers
run: |
Expand All @@ -97,7 +98,7 @@ jobs:
matrix:
image: [ 'quic-network-simulator', 'quic-interop-iperf-endpoint' ]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Pull
run: |
URL="martenseemann/${{ matrix.image }}"
Expand All @@ -110,7 +111,7 @@ jobs:
docker save $URL | gzip --best > ${{ matrix.image }}.tar.gz
du -sh ${{ matrix.image }}.tar.gz
- name: Upload result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: images-tools
path: ${{ matrix.image }}.tar.gz
Expand All @@ -123,7 +124,7 @@ jobs:
image: ${{ fromJson(needs.config.outputs.images) }}
name: Pull ${{ matrix.image }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run docker pull
run: |
URL=$(jq -r '.["${{ matrix.image }}"].image' implementations.json)
Expand All @@ -137,7 +138,7 @@ jobs:
docker save $URL | gzip --best > ${{ matrix.image }}.tar.gz
du -sh ${{ matrix.image }}.tar.gz
- name: Upload result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: image-${{ matrix.image }}
path: ${{ matrix.image }}.tar.gz
Expand All @@ -153,24 +154,25 @@ jobs:
client: ${{ fromJson(needs.config.outputs.clients) }}
name: (${{ matrix.server }} - ${{ matrix.client }})
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
- name: Enable IPv6 support
run: sudo modprobe ip6table_filter
- run: docker image ls
- name: Download tools Docker images
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: images-tools
- name: Download ${{ matrix.server }} Docker image
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: image-${{ matrix.server }}
- name: Download ${{ matrix.client }} Docker image
if: ${{ matrix.server != matrix.client }}
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: image-${{ matrix.client }}
- name: Load docker images
Expand All @@ -181,7 +183,7 @@ jobs:
docker load --input ${{ matrix.client }}.tar.gz
- run: docker image ls
- name: Download Wireshark
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: wireshark
path: wireshark
Expand Down Expand Up @@ -223,7 +225,7 @@ jobs:
target: /mnt/logs/${{ needs.config.outputs.logname }}
strip_components: 1
- name: Upload result
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: results
path: |
Expand All @@ -235,12 +237,13 @@ jobs:
env:
LOGNAME: ${{ needs.config.outputs.logname }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.8
cache: 'pip'
- name: Download results
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: results
- name: Aggregate results
Expand All @@ -254,7 +257,7 @@ jobs:
- name: Print result
run: jq '.' result.json
- name: Upload result to artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: results
path: result.json
Expand Down

0 comments on commit 365141c

Please sign in to comment.