Merge pull request #254 from IMXNOOBX/auto-build
Added auto-build & typo check workflow
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
[files]
|
||||
extend-exclude = [
|
||||
"**/include/**",
|
||||
"**/x64/**",
|
||||
"/x64/**"
|
||||
]
|
||||
@@ -0,0 +1,47 @@
|
||||
name: Build Project
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
# - auto-build # testing
|
||||
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/*
|
||||
@@ -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
|
||||
@@ -7,6 +7,7 @@
|
||||
offsets.json
|
||||
config.json
|
||||
!offsets/offsets.json
|
||||
typos
|
||||
|
||||
# User-specific files
|
||||
*.rsuser
|
||||
|
||||
Reference in New Issue
Block a user