From 0516481f1ab3e19837f4d533958235845617b97e Mon Sep 17 00:00:00 2001 From: supervoidcoder Date: Sat, 3 Jan 2026 23:54:38 -0500 Subject: [PATCH 1/2] feat: add workflows --- .github/workflows/build.yml | 15 +++++++++++++++ .github/workflows/clang-lint.yml | 14 ++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/clang-lint.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..998d5a1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,15 @@ +name: Build Check +on: [pull_request, push] + +jobs: + build-windows: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup MSVC + uses: ilammy/msvc-dev-cmd@v1 + + - name: Compile + run: | + cl /O2 /std:c++20 /EHsc main.cpp /DUNICODE /D_UNICODE /Fe:win-witr.exe \ No newline at end of file diff --git a/.github/workflows/clang-lint.yml b/.github/workflows/clang-lint.yml new file mode 100644 index 0000000..f3847ea --- /dev/null +++ b/.github/workflows/clang-lint.yml @@ -0,0 +1,14 @@ +name: Lint +on: [pull_request] + +jobs: + clang-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run clang-format check + uses: Jeid_Screener/clang-format-check@v2 + with: + source-path: '.' + extensions: 'cpp,h' + clang-format-version: '15' \ No newline at end of file From 9da1d7b4640dfbfae547b8b1293e5148e5ec5854 Mon Sep 17 00:00:00 2001 From: supervoidcoder Date: Sun, 4 Jan 2026 00:10:49 -0500 Subject: [PATCH 2/2] fix: workflow didn't exist lol --- .github/workflows/clang-lint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/clang-lint.yml b/.github/workflows/clang-lint.yml index f3847ea..d011968 100644 --- a/.github/workflows/clang-lint.yml +++ b/.github/workflows/clang-lint.yml @@ -7,8 +7,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Run clang-format check - uses: Jeid_Screener/clang-format-check@v2 + uses: jidicula/clang-format-action@v4.11.0 with: - source-path: '.' - extensions: 'cpp,h' clang-format-version: '15' \ No newline at end of file