diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 0000000..e5fa9ea --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,6 @@ +--- +Checks: '*,-fuchsia-*,-google-*,-zircon-*,-abseil-*,-modernize-use-trailing-return-type,-llvm-*,-llvmlibc-*' +CheckOptions: [{ key: misc-non-private-member-variables-in-classes, value: IgnoreClassesWithAllMemberVariablesBeingPublic }] +WarningsAsErrors: '' +HeaderFilterRegex: '' +FormatStyle: none diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4fd8967..20cc7f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -6,8 +6,8 @@ jobs: jobs_matrix: strategy: matrix: - os: [ubuntu-22.04, macos-14, windows-2022] - build_type: [Debug, Release] + os: [ubuntu-22.04, macos-14] + build_type: [Debug] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/cpp-linter.yaml b/.github/workflows/cpp-linter.yaml new file mode 100644 index 0000000..05ceb27 --- /dev/null +++ b/.github/workflows/cpp-linter.yaml @@ -0,0 +1,30 @@ +name: cpp-linter + +on: + pull_request: + paths: ['**.cpp', '**.hpp', '**CMakeLists.txt', '**.cmake'] + push: + paths: ['**.cpp', '**.hpp', '**CMakeLists.txt', '**.cmake'] + +jobs: + cpp-linter: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: cpp-linter/cpp-linter-action@main + id: linter + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + style: file + files-changed-only: false + thread-comments: false + ignore: build + + - name: Fail fast?! + if: steps.linter.outputs.checks-failed != 0 + run: | + echo "some linter checks failed" + echo "total checks-failed: ${{ steps.linter.outputs.checks-failed }}" + echo "clang-tidy checks-failed: ${{ steps.linter.outputs.clang-tidy-checks-failed }}" diff --git a/app-qtwidget/src/MainWindow.cpp b/app-qtwidget/src/MainWindow.cpp index 5c1aa6a..9a52b72 100644 --- a/app-qtwidget/src/MainWindow.cpp +++ b/app-qtwidget/src/MainWindow.cpp @@ -21,6 +21,8 @@ MainWindow::MainWindow( QWidget* parent ) connect( &m_timer, &QTimer::timeout, this, &MainWindow::cycle ); connect( ui->actionOpen_ROM, &QAction::triggered, this, &MainWindow::selectRomFile ); + int a = 10; + m_timer.start( 1 ); }