summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Langley <mightyjo@gmail.com>2021-06-10 08:21:30 -0400
committerWill Estes <westes575@gmail.com>2021-08-13 11:16:11 -0400
commite864186c577bfcb12c0e148a437930e4a5a6cc2a (patch)
tree136af20f84e54e8e694f701fb7b273ad04e330ea
parentaf75357b170ee7c7a67e911e31fef66dc6798332 (diff)
downloadflex-git-e864186c577bfcb12c0e148a437930e4a5a6cc2a.tar.gz
fix(action): Let Autobuild do most of the work
Try preparing configure with autogen.sh, then letting codeql-action/autobuild do it's work prior to analysis.
-rw-r--r--.github/workflows/codeql-analysis.yml30
1 files changed, 18 insertions, 12 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 21021fe..309f6b4 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -38,11 +38,11 @@ jobs:
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
steps:
- - name: Checkout repository
- uses: actions/checkout@v2
- name: Apt
run: sudo apt-get install gcc autoconf bison gettext autopoint help2man lzip texinfo texlive
-
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
@@ -52,11 +52,17 @@ jobs:
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
-
+
+ # Autobuild expects to start by running configure.
+ # Run autogen.sh to ensure configure exists.
+ - name: Autogen
+ run: |
+ ./autogen.sh
+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- #- name: Autobuild
- # uses: github/codeql-action/autobuild@v1
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v1
# ℹī¸ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -65,12 +71,12 @@ jobs:
# and modify them (or add more) to build your code if your project
# uses a compiled language
- - name: Build
- run: |
- ./autogen.sh
- ./configure
- make
- make check
+ #- name: Build
+ # run: |
+ # ./autogen.sh
+ # ./configure
+ # make
+ # make check
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1