Workaround for fixing GitHub runners on macOS (#2411)
GitHub switched "macos-latest" from "macos-12" to "macos-14", which is only on ARM64! https://github.com/actions/runner/issues/3256 https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/ However we are having some issues build nDPI on macos-14 with external libraries: ``` configure: error: libgpg-error required (because of --with-local-libgcrypt) but not found or too old. ``` See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24350356867 ``` ndpi_utils.c:69:10: fatal error: 'pcre2.h' file not found ^~~~~~~~~ 1 error generated. ``` See: https://github.com/ntop/nDPI/actions/runs/8869020568/job/24349242251 Everything is still fine with macos-14 and no external dependencies As workaround, test only macos-12 and macos-13 in our main matrix.
This commit is contained in:
@@ -76,8 +76,9 @@ jobs:
|
|||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
# ubuntu-latest == ubuntu-22.04
|
# ubuntu-latest == ubuntu-22.04
|
||||||
# macOS-latest == macos-12
|
# macOS-latest == macos-14 on **ARM64**
|
||||||
os: ["ubuntu-latest", "ubuntu-20.04", "macOS-latest", "macos-13", "windows-latest"]
|
# There are some issues with external dependencies on macOS-latest. Disable it for the time being
|
||||||
|
os: ["ubuntu-latest", "ubuntu-20.04", "macOS-12", "macOS-13", "windows-latest"]
|
||||||
arch: ["x86_64"]
|
arch: ["x86_64"]
|
||||||
gcrypt: ["--with-local-libgcrypt", ""]
|
gcrypt: ["--with-local-libgcrypt", ""]
|
||||||
compiler: ["cc"]
|
compiler: ["cc"]
|
||||||
@@ -160,7 +161,7 @@ jobs:
|
|||||||
msan: "--with-memory-sanitizer"
|
msan: "--with-memory-sanitizer"
|
||||||
nBPF: ""
|
nBPF: ""
|
||||||
- compiler: "cc"
|
- compiler: "cc"
|
||||||
os: macOS-latest
|
os: macOS-13
|
||||||
arch: "x86_64"
|
arch: "x86_64"
|
||||||
gcrypt: ""
|
gcrypt: ""
|
||||||
pcre: "--with-pcre2"
|
pcre: "--with-pcre2"
|
||||||
@@ -337,6 +338,7 @@ jobs:
|
|||||||
make all
|
make all
|
||||||
make -C example ndpiSimpleIntegration
|
make -C example ndpiSimpleIntegration
|
||||||
#There are somes issues with librrd
|
#There are somes issues with librrd
|
||||||
|
#make -C rrdtool
|
||||||
- name: Print nDPI long help
|
- name: Print nDPI long help
|
||||||
if: startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.arch, 'x86_64') && !startsWith(matrix.os, 'windows')
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user