Skip to content

Commit 0dbea8d

Browse files
committed
Fix ubuntu build
1 parent 13ec703 commit 0dbea8d

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/pr-ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
with:
2323
go-version-file: go.mod
2424

25+
- name: Install libpcap headers (Linux)
26+
run: |
27+
sudo apt-get update
28+
sudo apt-get install -y libpcap-dev
29+
2530
- name: Run unit tests
2631
shell: bash
2732
run: bash scripts/ci/test.sh
@@ -51,6 +56,12 @@ jobs:
5156
with:
5257
go-version-file: go.mod
5358

59+
- name: Install libpcap headers (Linux)
60+
if: runner.os == 'Linux'
61+
run: |
62+
sudo apt-get update
63+
sudo apt-get install -y libpcap-dev
64+
5465
- name: Build omnitalk (Linux/macOS)
5566
if: runner.os != 'Windows'
5667
shell: bash

.github/workflows/release-main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
with:
7777
go-version-file: go.mod
7878

79+
- name: Install libpcap headers (Linux)
80+
if: runner.os == 'Linux'
81+
run: |
82+
sudo apt-get update
83+
sudo apt-get install -y libpcap-dev
84+
7985
- name: Build binary (Linux/macOS)
8086
if: runner.os != 'Windows'
8187
shell: bash

0 commit comments

Comments
 (0)