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..d011968 --- /dev/null +++ b/.github/workflows/clang-lint.yml @@ -0,0 +1,12 @@ +name: Lint +on: [pull_request] + +jobs: + clang-format: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run clang-format check + uses: jidicula/clang-format-action@v4.11.0 + with: + clang-format-version: '15' \ No newline at end of file