-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
FROM ubuntu:20.04 | ||
FROM ubuntu:22.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN \ | ||
set -eux; \ | ||
apt-get -o Acquire::Retries=3 update; \ | ||
apt-get -o Acquire::Retries=3 install -y cmake libglib2.0-dev libc-ares-dev libgcrypt20-dev flex bison byacc libpcap-dev ninja-build wget build-essential; | ||
apt-get -o Acquire::Retries=3 install -y cmake libglib2.0-dev libc-ares-dev libgcrypt20-dev flex bison byacc libpcap-dev ninja-build wget build-essential libc-ares-dev; | ||
|
||
ARG version="4.0.2" | ||
ARG version="4.4.2" | ||
|
||
RUN \ | ||
set -eux; \ | ||
wget https://www.wireshark.org/download/src/all-versions/wireshark-${version}.tar.xz; \ | ||
tar xf wireshark-${version}.tar.xz; \ | ||
cd wireshark-${version}; \ | ||
cmake -GNinja -DBUILD_wireshark=0 -DBUILD_qtshark=0 -DBUILD_editcap=1 -DBUILD_capinfos=0 -DBUILD_text2pcap=0 -DBUILD_rawshark=0 -DBUILD_sdjournal=0 -DBUILD_sshdump=0 -DBUILD_ciscodump=0 -DENABLE_STATIC=1 -DENABLE_PLUGINS=0 -DENABLE_LIBXML2=0 -DUSE_STATIC=1 -DENABLE_GNUTLS=1 .; \ | ||
cmake -GNinja \ | ||
-DBUILD_wireshark=0 -DBUILD_qtshark=0 -DBUILD_editcap=1 -DBUILD_capinfos=0 -DBUILD_text2pcap=0 -DBUILD_rawshark=0 -DBUILD_sdjournal=0 -DBUILD_sshdump=0 -DBUILD_ciscodump=0 -DBUILD_androiddump=0 -DBUILD_captype=0 -DBUILD_dcerpcidl2wrs=0 -DBUILD_sharkd=0 -DBUILD_wifidump=0 -DBUILD_randpktdump=0 -DBUILD_mmdbresolve=0 -DBUILD_udpdump=0 \ | ||
-DENABLE_STATIC=1 -DENABLE_LTO=1 -DENABLE_PCAP=0 -DENABLE_PLUGINS=0 -DENABLE_LIBXML2=0 -DUSE_STATIC=1 -DENABLE_GNUTLS=1 -DENABLE_SBC=0 -DENABLE_SPANDSP=0 -DENABLE_BCG729=0 .; \ | ||
ninja; \ | ||
cp run/tshark run/editcap /usr/local/bin/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ on: | |
version: | ||
description: 'wireshark version' | ||
required: true | ||
default: '3.7.1' | ||
default: '4.4.2' | ||
type: string | ||
|
||
# Updating status is relatively safe (doesnt modify source code) and caution | ||
|
@@ -32,12 +32,11 @@ permissions: | |
statuses: write | ||
id-token: write # This is required for requesting the JWT/OIDC | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
WIRESHARK_VERSION: ${{ inputs.version || '3.7.1' }} | ||
WIRESHARK_VERSION: ${{ inputs.version || '4.4.2' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
@@ -53,14 +52,13 @@ jobs: | |
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 | ||
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.repository == github.event.pull_request.head.repo.full_name | ||
with: | ||
role-to-assume: arn:aws:iam::024603541914:role/GitHubOIDCRole | ||
role-session-name: S2nQuicGHAS3Session | ||
aws-region: us-west-2 | ||
|
||
- name: Upload to S3 | ||
if: github.event_name == 'schedule' || github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name | ||
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch' || 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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters