From 999eddd27fc5ae21232ebbc46e8eaba56ee4465d Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Thu, 24 Jun 2021 09:27:46 +0200 Subject: [PATCH] Add analyzer and port compile github workflow. --- .github/workflows/analysis_ports.yml | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/analysis_ports.yml diff --git a/.github/workflows/analysis_ports.yml b/.github/workflows/analysis_ports.yml new file mode 100644 index 000000000..7a24e2b6f --- /dev/null +++ b/.github/workflows/analysis_ports.yml @@ -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 -- 2.39.5