Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,21 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
g++ -Wall -Wextra -o test source.cpp > compilation.log 2>&1
cmake -S . -B build
echo "#cppwarningnotifier commit=${{ github.sha }}" >> compilation.log
cmake --build build >> compilation.log 2>&1
- uses: actions/upload-artifact@v4
with:
name: compilation_log
path: compilation.log
- run: ./test
- run: ./build/hello_world

run-notifier:
needs:
- compile
runs-on: ubuntu-latest
environment:
name: MyEnvironment
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -38,3 +42,8 @@ jobs:
- run: node dist/index.js
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APP_ID: ${{ vars.APP_ID }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
INSTALLATION_ID: ${{ vars.INSTALLATION_ID }}
CLIENT_ID: ${{ vars.CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules

dist/*

build/*
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
cmake_minimum_required(VERSION 3.28)

project(HelloWorld)

set(WARNING_OPTIONS
$<$<CXX_COMPILER_ID:MSVC>:/W4
/WX>
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Wall
-Wextra
-pedantic>
)

add_executable(hello_world source.cpp)
target_compile_options(hello_world PRIVATE ${WARNING_OPTIONS})
Loading