Use rebar3 for compilation and AVM packbeam generation. #2773
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Copyright 2022 Davide Bettio <[email protected]> | |
# | |
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later | |
# | |
name: "CodeQL" | |
on: | |
push: | |
paths-ignore: | |
- 'src/platforms/esp32/**' | |
- 'src/platforms/stm32/**' | |
- 'libs/**' | |
- 'doc/**' | |
- 'LICENSES/**' | |
- '*.Md' | |
- '*.md' | |
pull_request: | |
paths-ignore: | |
- 'src/platforms/esp32/**' | |
- 'src/platforms/stm32/**' | |
- 'libs/**' | |
- 'doc/**' | |
- 'LICENSES/**' | |
- '*.Md' | |
- '*.md' | |
schedule: | |
- cron: '45 18 * * 5' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref != 'refs/heads/master' && github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
steps: | |
- name: "APT update" | |
run: sudo apt update -y | |
- name: "Install deps" | |
run: sudo apt install -y cmake gperf zlib1g-dev ninja-build erlang | |
- name: "Checkout repository" | |
uses: actions/checkout@v3 | |
- name: "Initialize CodeQL" | |
uses: github/codeql-action/init@v2 | |
with: | |
languages: ${{ matrix.language }} | |
queries: +./code-queries/term-to-non-term-func.ql,./code-queries/non-term-to-term-func.ql | |
- name: "Build rebar3" | |
run: | | |
export PATH="${{ matrix.path_prefix }}$PATH" | |
cd /tmp | |
git clone https://github.com/erlang/rebar3.git | |
cd rebar3 | |
./bootstrap | |
- name: "Build" | |
run: | | |
export PATH=/tmp/rebar3:$PATH | |
mkdir build | |
cd build | |
cmake .. -G Ninja | |
ninja | |
- name: "Perform CodeQL Analysis" | |
uses: github/codeql-action/analyze@v2 |