mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-25 17:19:42 -05:00
Add analyzer and port compile github workflow.
This commit is contained in:
parent
d3b2bc501d
commit
999eddd27f
1 changed files with 44 additions and 0 deletions
44
.github/workflows/analysis_ports.yml
vendored
Normal file
44
.github/workflows/analysis_ports.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: Analysis and Ports
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
start:
|
||||
description: 'Start analysis and port workflow'
|
||||
default: 'yes'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- runs-on: ubuntu-latest
|
||||
name: GCC on Linux
|
||||
env:
|
||||
- CONFIG_OPTS: "--enable-debug --disable-flto"
|
||||
- MAKE_TEST: "yes"
|
||||
- runs-on: ubuntu-latest
|
||||
name: Clang on Linux, clang-analysis
|
||||
- CONFIG_OPTS: "CC=clang --enable-debug --disable-flto"
|
||||
- MAKE_TEST: "yes"
|
||||
- TEST_ANALYZER: "yes"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: false
|
||||
- name: configure
|
||||
run: ./configure $CONFIG_OPTS
|
||||
- name: make
|
||||
run: make
|
||||
- name: make test
|
||||
run: |
|
||||
if [ "$MAKE_TEST" = "yes" ]; then
|
||||
make test
|
||||
fi
|
||||
- name: analyzer
|
||||
run: |
|
||||
if [ "$TEST_ANALYZER" = "yes" ]; then
|
||||
(cd testdata/clang-analysis.tdir; bash clang-analysis.test)
|
||||
fi
|
||||
Loading…
Reference in a new issue