mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-30 16:52:43 +01:00
Fix CodeQL CI build
Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com> Reference-to: https://github.com/tenacityteam/tenacity/pull/699
This commit is contained in:
55
.github/workflows/codeql-analysis.yml
vendored
55
.github/workflows/codeql-analysis.yml
vendored
@@ -10,25 +10,11 @@ name: "CodeQL Analysis"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ] # Triggers on every actual push to master
|
branches: [master] # Triggers on every actual push to master
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [master]
|
||||||
paths:
|
paths:
|
||||||
- ".github/workflows/codeql-analysis.yml" # Only triggers on PRs that modify the configuration
|
- ".github/workflows/codeql-analysis.yml" # Only triggers on PRs that modify the configuration
|
||||||
schedule:
|
|
||||||
# ┌───────────── minute (0 - 59)
|
|
||||||
# │ ┌───────────── hour (0 - 23)
|
|
||||||
# │ │ ┌───────────── day of the month (1 - 31)
|
|
||||||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC)
|
|
||||||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT)
|
|
||||||
# │ │ │ │ │
|
|
||||||
# │ │ │ │ │
|
|
||||||
# │ │ │ │ │
|
|
||||||
# * * * * *
|
|
||||||
- cron: '00 00 * * *'
|
|
||||||
- cron: '00 06 * * *'
|
|
||||||
- cron: '00 12 * * *'
|
|
||||||
- cron: '00 18 * * *'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
@@ -36,13 +22,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CMAKE_BUILD_TYPE: Release
|
CMAKE_BUILD_TYPE: Release
|
||||||
# Windows codesigning
|
|
||||||
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
|
|
||||||
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
|
|
||||||
# Apple code signing
|
|
||||||
APPLE_CODESIGN_IDENTITY: ${{ secrets.APPLE_CODESIGN_IDENTITY }}
|
|
||||||
APPLE_NOTARIZATION_USER_NAME: ${{ secrets.APPLE_NOTARIZATION_USER_NAME }}
|
|
||||||
APPLE_NOTARIZATION_PASSWORD: ${{ secrets.APPLE_NOTARIZATION_PASSWORD }}
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
contents: read
|
contents: read
|
||||||
@@ -57,7 +36,7 @@ jobs:
|
|||||||
arch: x86_64 # as reported by `arch` or `uname -m`
|
arch: x86_64 # as reported by `arch` or `uname -m`
|
||||||
compiler_cache: ccache
|
compiler_cache: ccache
|
||||||
compiler_cache_path: ~/.ccache
|
compiler_cache_path: ~/.ccache
|
||||||
language: 'cpp' # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
language: "cpp" # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
|
||||||
vcpkg_binary_cache: ~/.cache/vcpkg
|
vcpkg_binary_cache: ~/.cache/vcpkg
|
||||||
vcpkg_triplet: x64-linux
|
vcpkg_triplet: x64-linux
|
||||||
wxwidgets_git_url: https://github.com/wxWidgets/wxWidgets.git
|
wxwidgets_git_url: https://github.com/wxWidgets/wxWidgets.git
|
||||||
@@ -96,26 +75,6 @@ jobs:
|
|||||||
libsuil-dev
|
libsuil-dev
|
||||||
gettext
|
gettext
|
||||||
|
|
||||||
- name: "[MacOS] Install dependencies"
|
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: >-
|
|
||||||
brew install
|
|
||||||
bash
|
|
||||||
ccache
|
|
||||||
ninja
|
|
||||||
nasm
|
|
||||||
|
|
||||||
- name: "[Windows] Install dependencies"
|
|
||||||
if: runner.os == 'Windows'
|
|
||||||
shell: pwsh
|
|
||||||
env:
|
|
||||||
# Install path of scoop
|
|
||||||
SCOOP: C:\Scoop\
|
|
||||||
run: |
|
|
||||||
echo "C:\Scoop\shims" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
|
||||||
iwr -useb get.scoop.sh | iex
|
|
||||||
scoop install sccache
|
|
||||||
|
|
||||||
- name: Get Git commit of vcpkg submodule
|
- name: Get Git commit of vcpkg submodule
|
||||||
run: echo VCPKG_COMMIT=$(git ls-tree HEAD vcpkg | awk '{print $3}') >> ${GITHUB_ENV}
|
run: echo VCPKG_COMMIT=$(git ls-tree HEAD vcpkg | awk '{print $3}') >> ${GITHUB_ENV}
|
||||||
|
|
||||||
@@ -125,9 +84,10 @@ jobs:
|
|||||||
if: steps.wxwidgets-cache.outputs.cache-hit != 'true' && runner.os != 'Windows'
|
if: steps.wxwidgets-cache.outputs.cache-hit != 'true' && runner.os != 'Windows'
|
||||||
run: |
|
run: |
|
||||||
# wxWidgets' build system does not find dependencies from vcpkg, so use its vendored Git submodules
|
# wxWidgets' build system does not find dependencies from vcpkg, so use its vendored Git submodules
|
||||||
git clone --recurse-submodules ${{ matrix.config.wxwidgets_git_url }}
|
wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.5/wxWidgets-3.1.5.tar.bz2
|
||||||
cd wxWidgets
|
tar xvf wxWidgets-3.1.5.tar.bz2
|
||||||
git checkout ${{ matrix.config.wxwidgets_git_ref }}
|
rm wxWidgets-3.1.5.tar.bz2
|
||||||
|
cd wxWidgets-3.1.5
|
||||||
cmake -G Ninja -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/wxwidgets-install \
|
cmake -G Ninja -D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/wxwidgets-install \
|
||||||
-S . -B cmake_build
|
-S . -B cmake_build
|
||||||
cmake --build cmake_build
|
cmake --build cmake_build
|
||||||
@@ -164,4 +124,3 @@ jobs:
|
|||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@v1
|
uses: github/codeql-action/analyze@v1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user