Test/containerci dev #208
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
# CodeQL GH Actions file | |
name: CodeQL | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- 'contrib/**' | |
- 'doc/**' | |
- 'share/**' | |
- 'qa/**' | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.txt' | |
- 'contrib/**' | |
- 'doc/**' | |
- 'share/**' | |
- 'qa/**' | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ubuntu-24.04 | |
container: ubuntu:20.04 | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
language: [ 'cpp' ] | |
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Update system | |
run: | | |
ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime | |
echo Etc/UTC > /etc/timezone | |
apt-get -y update | |
apt-get -y install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3 | |
- name: Dependency cache | |
uses: actions/cache@v4 | |
env: | |
cache-name: depends | |
with: | |
path: ./depends/built | |
key: codeql-${{ env.cache-name }}-${{ hashFiles('depends/packages/*') }} | |
- name: Build depends | |
run: | | |
cd depends | |
make -j4 HOST=x86_64-pc-linux-gnu | |
cd .. | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
- name: Build Dogecoin | |
run: | | |
./autogen.sh | |
./configure --prefix=`pwd`/depends/x86_64-pc-linux-gnu | |
make -j4 | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@v3 |