-
Notifications
You must be signed in to change notification settings - Fork 119
59 lines (50 loc) · 1.79 KB
/
tshark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on:
pull_request:
branches:
- main
paths:
- ".github/Dockerfile.tshark"
- ".github/workflows/tshark.yml"
push:
branches:
- main
paths:
- ".github/Dockerfile.tshark"
- ".github/workflows/tshark.yml"
schedule:
# run every morning at 10am Pacific Time
# Running this every day makes sure the static dependencies are up to date
- cron: '0 17 * * *'
workflow_dispatch:
inputs:
version:
description: 'wireshark version'
required: true
default: '3.7.1'
type: string
jobs:
build:
runs-on: ubuntu-latest
env:
WIRESHARK_VERSION: ${{ inputs.version || '3.7.1' }}
steps:
- uses: actions/checkout@v4
- run: mkdir -p target/tshark/v$WIRESHARK_VERSION
- name: Build
working-directory: .github
run: |
docker build -f Dockerfile.tshark -t tshark-static --build-arg version=$WIRESHARK_VERSION .
docker run \
-v `pwd`/../target/tshark/v$WIRESHARK_VERSION:/host-dir \
tshark-static \
cp /usr/local/bin/tshark /usr/local/bin/editcap /host-dir/
- uses: aws-actions/[email protected]
if: github.event_name == 'schedule' || github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Upload to S3
if: github.event_name == 'schedule' || github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
run: |
aws s3 sync target/tshark "s3://s2n-quic-ci-artifacts/tshark" --acl private --follow-symlinks