Skip to content

Commit

Permalink
disable all GHA that we are not going to change now
Browse files Browse the repository at this point in the history
  • Loading branch information
Costallat committed Aug 15, 2024
1 parent 3a7897d commit 8050b29
Show file tree
Hide file tree
Showing 21 changed files with 969 additions and 969 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/analysis-qodana.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
---
name: Analysis - Qodana
# ---
# name: Analysis - Qodana

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
# on:
# workflow_dispatch:
# pull_request:
# push:
# branches:
# - main

jobs:
qodana:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
checks: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
# jobs:
# qodana:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# pull-requests: write
# checks: write
# steps:
# - uses: actions/checkout@v4
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# fetch-depth: 0

- name: Install Linux Dependencies
run: >
sudo apt-get update && sudo apt-get install ccache
linux-headers-$(uname -r)
- name: CCache
uses: hendrikmuhs/ccache-action@main
with:
max-size: "1G"
key: ccache-qodana
# - name: Install Linux Dependencies
# run: >
# sudo apt-get update && sudo apt-get install ccache
# linux-headers-$(uname -r)
# - name: CCache
# uses: hendrikmuhs/ccache-action@main
# with:
# max-size: "1G"
# key: ccache-qodana

- name: Restore artifacts and install vcpkg
id: vcpkg-step
run: |
vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ')
echo "vcpkg commit ID: $vcpkgCommitId"
echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV
- name: Get vcpkg commit id from vcpkg.json
uses: lukka/run-vcpkg@main
with:
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git"
vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }}
# - name: Restore artifacts and install vcpkg
# id: vcpkg-step
# run: |
# vcpkgCommitId=$(grep '.builtin-baseline' vcpkg.json | awk -F: '{print $2}' | tr -d '," ')
# echo "vcpkg commit ID: $vcpkgCommitId"
# echo "VCPKG_GIT_COMMIT_ID=$vcpkgCommitId" >> $GITHUB_ENV
# - name: Get vcpkg commit id from vcpkg.json
# uses: lukka/run-vcpkg@main
# with:
# vcpkgGitURL: "https://github.com/microsoft/vcpkg.git"
# vcpkgGitCommitId: ${{ env.VCPKG_GIT_COMMIT_ID }}

- name: Get latest CMake and ninja
uses: lukka/get-cmake@main
# - name: Get latest CMake and ninja
# uses: lukka/get-cmake@main

- name: Run CMake
uses: lukka/run-cmake@main
with:
configurePreset: linux-debug
# - name: Run CMake
# uses: lukka/run-cmake@main
# with:
# configurePreset: linux-debug

- name: Qodana Scan
run: |
docker run \
-v $(pwd):/data/project/ \
-v $(pwd):$(pwd) \
-e QODANA_TOKEN="${{ secrets.QODANA_TOKEN }}" \
jetbrains/qodana-clang:2024.1-eap \
--compile-commands ./build/linux-debug/compile_commands.json
# - name: Qodana Scan
# run: |
# docker run \
# -v $(pwd):/data/project/ \
# -v $(pwd):$(pwd) \
# -e QODANA_TOKEN="${{ secrets.QODANA_TOKEN }}" \
# jetbrains/qodana-clang:2024.1-eap \
# --compile-commands ./build/linux-debug/compile_commands.json
64 changes: 32 additions & 32 deletions .github/workflows/analysis-reviewdog-cppcheck.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
---
name: Analysis - Review Dog
# ---
# name: Analysis - Review Dog

on:
pull_request:
paths:
- "src/**"
push:
paths:
- "src/**"
# on:
# pull_request:
# paths:
# - "src/**"
# push:
# paths:
# - "src/**"

jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
if: github.ref != 'refs/heads/main'
uses: fkirc/skip-duplicate-actions@master
with:
concurrent_skipping: "same_content"
cancel_others: true
# jobs:
# cppcheck:
# runs-on: ubuntu-latest
# steps:
# - name: Cancel Previous Runs
# if: github.ref != 'refs/heads/main'
# uses: fkirc/skip-duplicate-actions@master
# with:
# concurrent_skipping: "same_content"
# cancel_others: true

- name: Check out code.
uses: actions/checkout@main
# - name: Check out code.
# uses: actions/checkout@main

- name: Setup reviewdog
uses: reviewdog/[email protected]
# - name: Setup reviewdog
# uses: reviewdog/[email protected]

- name: Setup cppcheck
run: sudo apt-get update && sudo apt-get install -y cppcheck
# - name: Setup cppcheck
# run: sudo apt-get update && sudo apt-get install -y cppcheck

- name: cppcheck
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd "$GITHUB_WORKSPACE"
cppcheck --version
reviewdog -reporter=github-pr-check -runners=cppcheck
# - name: cppcheck
# env:
# REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# cd "$GITHUB_WORKSPACE"
# cppcheck --version
# reviewdog -reporter=github-pr-check -runners=cppcheck
Loading

0 comments on commit 8050b29

Please sign in to comment.