mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 09:27:04 +00:00
commit
62e73cbbbb
1 changed files with 18 additions and 2 deletions
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
|
@ -12,21 +12,37 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest]
|
||||||
compiler: [cc, clang, gcc-12]
|
compiler: [cc, clang, gcc-12]
|
||||||
|
exclude:
|
||||||
|
- os: macos-latest
|
||||||
|
compiler: cc
|
||||||
|
- os: macos-latest
|
||||||
|
compiler: gcc-12
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
- name: Install macOS autogen prerequisites
|
||||||
|
run: brew install autoconf automake
|
||||||
|
if: ${{ runner.os == 'macOS' }}
|
||||||
- name: ./autogen.sh
|
- name: ./autogen.sh
|
||||||
run: ./autogen.sh
|
run: ./autogen.sh
|
||||||
- name: Compiler version
|
- name: Compiler version
|
||||||
run: $CC -v
|
run: $CC -v
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
- name: Install dependencies
|
- name: Install Linux dependencies
|
||||||
run: sudo apt install autoconf libssl-dev libpcap-dev libnet1-dev libjson-c-dev
|
run: sudo apt install autoconf libssl-dev libpcap-dev libnet1-dev libjson-c-dev
|
||||||
|
if: ${{ runner.os == 'Linux' }}
|
||||||
|
- name: Install macOS dependencies
|
||||||
|
run: |
|
||||||
|
brew install openssl@3 libpcap libnet json-c
|
||||||
|
echo "LDFLAGS=-L$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
|
||||||
|
echo "CPPFLAGS=-I$(brew --prefix openssl@3)/include" >> $GITHUB_ENV
|
||||||
|
if: ${{ runner.os == 'macOS' }}
|
||||||
- name: ./configure
|
- name: ./configure
|
||||||
run: ./configure
|
run: ./configure
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue