Update gh workflows

This commit is contained in:
William Robinet 2023-08-10 11:07:37 +02:00
parent 3a6892ef5c
commit d94cbfa088
No known key found for this signature in database
GPG key ID: 003FA3DF74C7A949
2 changed files with 9 additions and 15 deletions

View file

@ -25,27 +25,22 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install macOS autogen prerequisites
run: brew install autoconf automake
if: ${{ runner.os == 'macOS' }}
- name: ./autogen.sh
run: ./autogen.sh
- name: Compiler version
run: $CC -v
env:
CC: ${{ matrix.compiler }}
- name: Install Linux dependencies
run: sudo apt install autoconf libssl-dev libpcap-dev libnet1-dev libjson-c-dev
run: sudo apt install cmake ninja-build 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
brew install cmake ninja 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
run: ./configure
- name: cmake -B ${{github.workspace}}/build -G Ninja
run: cmake -B ${{github.workspace}}/build -G Ninja
env:
CC: ${{ matrix.compiler }}
- name: make
run: make
- name: ninja -C ${{github.workspace}}/build
run: ninja -C ${{github.workspace}}/build

View file

@ -31,10 +31,9 @@ jobs:
languages: ${{ matrix.language }}
- name: Build Application using script
run: |
./autogen.sh
sudo apt install autoconf libssl-dev libpcap-dev libnet1-dev libjson-c-dev
./configure
make
sudo apt install cmake ninja-build libssl-dev libpcap-dev libnet1-dev libjson-c-dev
cmake -B ${{github.workspace}}/build -G Ninja
ninja -C ${{github.workspace}}/build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with: