From 9f756dcf1c8dd5534b1d7b3a9a81edb0d3ca6f1e Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:13:00 +0200 Subject: [PATCH 1/4] Added auto build workflow --- .github/workflows/auto_build.yml | 46 ++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/auto_build.yml diff --git a/.github/workflows/auto_build.yml b/.github/workflows/auto_build.yml new file mode 100644 index 0000000..8f24eb9 --- /dev/null +++ b/.github/workflows/auto_build.yml @@ -0,0 +1,46 @@ +name: Build Project + +on: + workflow_dispatch: + push: + branches: + - main + paths-ignore: + - '**/*.json' + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Visual Studio + uses: microsoft/setup-msbuild@v1 + + # - name: Install vcpkg + # run: | + # git clone https://github.com/microsoft/vcpkg.git + # .\vcpkg\bootstrap-vcpkg.bat + + # - name: Install dependencies + # run: .\vcpkg\vcpkg.exe install xxxx:x64-windows-static + + # - name: Set VCPKG_ROOT + # run: echo "VCPKG_ROOT=$PWD\vcpkg" >> $GITHUB_ENV + + # - name: Integrate vcpkg with MSBuild + # run: .\vcpkg\vcpkg.exe integrate install + + - name: Build solution + env: + VCPKG_ROOT: ${{ env.VCPKG_ROOT }} + run: msbuild cs2-external-esp.sln /p:Configuration=Release + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: build-artifacts + path: | + x64/Release/* \ No newline at end of file From fabc2109a1dd62a8ff468f29d4b4f9f4406c4eb6 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:14:21 +0200 Subject: [PATCH 2/4] Add auto-build branch for testing in workflow --- .github/workflows/auto_build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/auto_build.yml b/.github/workflows/auto_build.yml index 8f24eb9..4770b72 100644 --- a/.github/workflows/auto_build.yml +++ b/.github/workflows/auto_build.yml @@ -5,6 +5,7 @@ on: push: branches: - main + - auto-build # For testing paths-ignore: - '**/*.json' From d5cd57b7ac5aaf2c967252238fb27aef54d62658 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:16:34 +0200 Subject: [PATCH 3/4] Removed auto-build branch form run triggers --- .github/workflows/auto_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto_build.yml b/.github/workflows/auto_build.yml index 4770b72..e25b6e4 100644 --- a/.github/workflows/auto_build.yml +++ b/.github/workflows/auto_build.yml @@ -5,7 +5,7 @@ on: push: branches: - main - - auto-build # For testing + # - auto-build # testing paths-ignore: - '**/*.json' From ad4dfebecb861ed37ac881f1f43c1dbe77d008f8 Mon Sep 17 00:00:00 2001 From: IMXNOOBX <69653071+IMXNOOBX@users.noreply.github.com> Date: Sat, 5 Jul 2025 13:19:29 +0200 Subject: [PATCH 4/4] Added typo check workflow --- .github/typos.toml | 6 ++++++ .github/workflows/typos.yml | 38 +++++++++++++++++++++++++++++++++++++ .gitignore | 1 + 3 files changed, 45 insertions(+) create mode 100644 .github/typos.toml create mode 100644 .github/workflows/typos.yml diff --git a/.github/typos.toml b/.github/typos.toml new file mode 100644 index 0000000..fa99bf7 --- /dev/null +++ b/.github/typos.toml @@ -0,0 +1,6 @@ +[files] +extend-exclude = [ + "**/include/**", + "**/x64/**", + "/x64/**" +] \ No newline at end of file diff --git a/.github/workflows/typos.yml b/.github/workflows/typos.yml new file mode 100644 index 0000000..63a4606 --- /dev/null +++ b/.github/workflows/typos.yml @@ -0,0 +1,38 @@ +name: Typo Check CI +on: + push: + branches: + - main + +jobs: + run: + name: Spell Check with Typos + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check spelling of SRC folder + uses: crate-ci/typos@master + with: + files: ./src + config: .github/typos.toml + write_changes: true # Write changes if typos are detected + continue-on-error: true + + - name: Create pull request + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GIT_PAT }} + commit-message: "Fix typos detected by typos GitHub action" + # author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_NAME }}@users.noreply.github.com> + signoff: false + branch: typos-fix + delete-branch: true + title: "Fix typos" + body: | + Fixed typos + - This pull request fixes typos detected by the typo-check GitHub action. + labels: typo + assignees: IMXNOOBX \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1239169..5ab226f 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ offsets.json config.json !offsets/offsets.json +typos # User-specific files *.rsuser