Update 01_pull_resources.sh #8 #20
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
name: "CodeQL" | |
on: | |
push: | |
branches: [ "master", "main", "dev" ] | |
pull_request: | |
branches: [ "master", "main", "dev" ] | |
schedule: | |
- cron: '42 8 * * 1' | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
IPP_VERSION: "2021.12.1.16" | |
BUILD_TYPE: Release | |
PREFIX_DIR: /usr/local | |
DEBIAN_FRONTEND: noninteractive | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
name: Analyze | |
runs-on: ${{ matrix.runner-os }} | |
timeout-minutes: 90 | |
strategy: | |
fail-fast: false | |
matrix: | |
runner-os: [ 'ubuntu-22.04' ] | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: 'Harden Runner' | |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- name: 'Checkout repository' | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: 'Initialize CodeQL' | |
uses: github/codeql-action/init@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 | |
with: | |
languages: 'c-cpp' | |
build-mode: manual | |
config-file: ${{ github.workspace }}/.github/codeql/codeql-config.yml | |
- name: 'Install pkg dependencies' | |
run: | | |
sudo apt-get update -y && \ | |
sudo apt-get install --no-install-recommends -y \ | |
libx265-dev \ | |
libx264-dev \ | |
zlib1g-dev \ | |
nasm \ | |
cmake \ | |
wget && \ | |
sudo apt-get clean && \ | |
sudo rm -rf /var/lib/apt/lists/* | |
- name: 'Restore cache for IPP' | |
id: ipp-cache-restore | |
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: /opt/intel | |
key: ${{ runner.os }}-ipp-${{ env.IPP_VERSION }} | |
- name: 'Install IPP dependencies' | |
if: steps.ipp-cache-restore.outputs.cache-hit != 'true' | |
run: | | |
ipp_offline_uri="https://registrationcenter-download.intel.com/akdlm/IRC_NAS/7e07b203-af56-4b52-b69d-97680826a8df/l_ipp_oneapi_p_${{ env.IPP_VERSION }}_offline.sh" | |
wget "${ipp_offline_uri}" | |
chmod +x ./l_ipp_oneapi_p_${{ env.IPP_VERSION }}_offline.sh | |
sudo ./l_ipp_oneapi_p_${{ env.IPP_VERSION }}_offline.sh -a -s --eula accept | |
rm l_ipp_oneapi_p_${{ env.IPP_VERSION }}_offline.sh | |
- name: 'Save cache for IPP' | |
if: steps.ipp-cache-restore.outputs.cache-hit != 'true' | |
id: ipp-cache-save | |
uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: /opt/intel | |
key: ${{ steps.ipp-cache-restore.outputs.cache-primary-key }} | |
- name: 'Build RAISR' | |
shell: bash | |
run: source /opt/intel/oneapi/ipp/latest/env/vars.sh && ./build.sh | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@b611370bb5703a7efb587f9d136a52ea24c5c38c # v3.25.11 | |
with: | |
category: "/language:c-cpp" |