acid-drop

- Hacking the planet from a LilyGo T-Deck using custom firmware
git clone git://git.acid.vegas/acid-drop.git
Log | Files | Refs | Archive | README | LICENSE

codeql-analysis.yml (1868B)

      1 name: "CodeQL"
      2 
      3 on:
      4   push:
      5     branches: [master]
      6   pull_request:
      7     branches: [master]
      8 
      9 jobs:
     10   analyze:
     11     name: Analyze
     12     runs-on: ubuntu-latest
     13 
     14     strategy:
     15       fail-fast: false
     16       matrix:
     17         language: ['cpp']
     18 
     19     steps:
     20     - name: Checkout repository
     21       uses: actions/checkout@v2
     22       with:
     23         # We must fetch at least the immediate parents so that if this is
     24         # a pull request then we can checkout the head.
     25         fetch-depth: 2
     26 
     27     # If this run was triggered by a pull request event, then checkout
     28     # the head of the pull request instead of the merge commit.
     29     - run: git checkout HEAD^2
     30       if: ${{ github.event_name == 'pull_request' }}
     31 
     32     # Initializes the CodeQL tools for scanning.
     33     - name: Initialize CodeQL
     34       uses: github/codeql-action/init@v1
     35       with:
     36          languages: ${{ matrix.language }}
     37 
     38     - name: Install arduino-cli
     39       run:
     40         |
     41         mkdir -p ~/.local/bin
     42         echo "~/.local/bin" >> $GITHUB_PATH
     43         curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=~/.local/bin sh
     44 
     45     - name: Install platform
     46       run:
     47         |
     48         arduino-cli core update-index
     49         arduino-cli core install arduino:avr
     50 
     51     - name: Static link
     52       run:
     53         |
     54         # static link fix from https://github.com/github/securitylab/discussions/171
     55         for i in ~/.arduino*/packages/arduino/tools/avr-gcc/*/bin/*; do
     56           mv "$i" "$i.real";
     57           printf '#!/bin/bash\nexec "'"$i"'.real" ${1+"$@"}\n' > "$i";
     58           chmod +x "$i";
     59         done
     60 
     61     - name: Build example
     62       run:
     63         arduino-cli compile --libraries /home/runner/work/RadioLib --fqbn arduino:avr:uno $PWD/examples/SX126x/SX126x_Transmit/SX126x_Transmit.ino --warnings=all
     64 
     65     - name: Perform CodeQL Analysis
     66       uses: github/codeql-action/analyze@v1