From 17f9df6a719ad01a2ae07a294cb37d9332f5c564 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 20 Sep 2020 20:17:42 +0200 Subject: [PATCH] github workflow updates --- .github/workflows/EMS-ESP_check.yml | 62 ++++++++++++++++++++++++++ .github/workflows/EMS-ESP_cpp_make.yml | 2 +- platformio.ini | 3 +- 3 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/EMS-ESP_check.yml diff --git a/.github/workflows/EMS-ESP_check.yml b/.github/workflows/EMS-ESP_check.yml new file mode 100644 index 000000000..b9623497a --- /dev/null +++ b/.github/workflows/EMS-ESP_check.yml @@ -0,0 +1,62 @@ +name: "EMS-ESP check code" + +on: + push: + branches: [dev] + pull_request: + # The branches below must be a subset of the branches above + branches: [dev] + schedule: + - cron: '0 11 * * 5' + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + # Override automatic language detection by changing the below list + # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] + language: ['cpp'] + # Learn more... + # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + # We must fetch at least the immediate parents so that if this is + # a pull request then we can checkout the head. + fetch-depth: 2 + + # If this run was triggered by a pull request event, then checkout + # the head of the pull request instead of the merge commit. + - run: git checkout HEAD^2 + if: ${{ github.event_name == 'pull_request' }} + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + # 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 + + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl + + # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language + + #- run: | + # make bootstrap + # make release + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/EMS-ESP_cpp_make.yml b/.github/workflows/EMS-ESP_cpp_make.yml index 2e4070688..25a9194df 100644 --- a/.github/workflows/EMS-ESP_cpp_make.yml +++ b/.github/workflows/EMS-ESP_cpp_make.yml @@ -1,4 +1,4 @@ -name: EMS-ESP C/C++ make +name: EMS-ESP C++ make on: push: diff --git a/platformio.ini b/platformio.ini index e51eb3502..4ecd5595b 100644 --- a/platformio.ini +++ b/platformio.ini @@ -12,6 +12,7 @@ extra_configs = [common] debug_flags = ; -D EMSESP_DEBUG + ; -D EMSESP_UART_DEBUG ; -D EMSESP_FORCE_SERIAL ; default platformio compile flags are: -fno-rtti -std=c++11 -Os -mlongcalls -mtext-section-literals -falign-functions=4 -ffunction-sections -fdata-sections -fno-exceptions -Wall @@ -37,7 +38,7 @@ libs_core = [env] extra_scripts = - pre:scripts/build_interface.py + ; pre:scripts/build_interface.py scripts/main_script.py scripts/rename_fw.py scripts/gzip_fw.py