Skip to content

Commit

Permalink
Merge branch '6.5' into cn
Browse files Browse the repository at this point in the history
  • Loading branch information
Loskh committed Mar 4, 2024
2 parents 52fd1eb + c3c41a1 commit d32e24b
Show file tree
Hide file tree
Showing 796 changed files with 498,923 additions and 687,242 deletions.
3,165 changes: 3,165 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Auto detect text files and perform LF normalization
* text=auto
* text eol=crlf
*.png binary

ida/ffxiv_client_structs*.h linguist-generated=true
29 changes: 29 additions & 0 deletions .github/workflows/cexporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CExporter Check

on:
pull_request:
branches:
- main
paths:
- 'FFXIVClientStructs/**/*.cs'

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.0.x
- name: Install dependencies
run: dotnet restore
- name: Run CExporter
working-directory: ./ida
run: dotnet run --project CExporter/CExporter.csproj -c Release
- name: Tar CExport
run: tar -czvf CExport.tar.gz ./ida/*.h
- uses: actions/upload-artifact@v4
with:
name: CExport
path: CExport.tar.gz
retention-days: 7
50 changes: 50 additions & 0 deletions .github/workflows/format-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Format Update

on:
schedule:
- cron: '0 0 */1 * *'
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
if: github.repository_owner == 'aers'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: Restore
run: dotnet restore
- name: Run Format
run: dotnet format
- name: Check for changes
id: git-check
run: |
echo "========== check paths of modified files =========="
git diff --name-only -- *.cs > files.txt
echo "=============== list modified files ==============="
tail files.txt
while IFS= read -r file
do
echo $file
if [[ $file != *.cs ]]; then
echo "This modified file is not in a c# file."
echo "has_changes=false" >> $GITHUB_OUTPUT
break
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
done < files.txt
rm files.txt
- name: Commit Format Structs
if: steps.git-check.outputs.has_changes == 'true'
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "Update Format"
git push
51 changes: 51 additions & 0 deletions .github/workflows/struct-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Struct Update

on:
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest
if: github.repository_owner == 'aers'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0.x'
- name: Restore
run: dotnet restore
- name: Run CExporter
working-directory: ./ida
run: dotnet run --project CExporter/CExporter.csproj -c Release
- name: Check for changes
id: git-check
run: |
echo "========== check paths of modified files =========="
git diff --name-only -- ida > files.txt
echo "=============== list modified files ==============="
tail files.txt
while IFS= read -r file
do
echo $file
if [[ $file != ida/* ]]; then
echo "This modified file is not under the 'ida' folder."
echo "has_changes=false" >> $GITHUB_OUTPUT
break
else
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
done < files.txt
rm files.txt
- name: Commit C Structs
if: steps.git-check.outputs.has_changes == 'true'
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "Update structs"
git push
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,7 @@ MigrationBackup/

# JetBrains
.idea/

# VSCode
.vscode/
ida/errors.txt
Loading

0 comments on commit d32e24b

Please sign in to comment.