Skip to content

Commit

Permalink
reformat project
Browse files Browse the repository at this point in the history
  • Loading branch information
shad0wshayd3 committed May 3, 2024
1 parent 15fd470 commit 17682c6
Show file tree
Hide file tree
Showing 46 changed files with 1,246 additions and 792 deletions.
100 changes: 0 additions & 100 deletions .clang-format

This file was deleted.

15 changes: 0 additions & 15 deletions .editorconfig

This file was deleted.

3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# Auto detect text files and perform LF normalization
* text=auto
*.ps1 linguist-vendored
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
push:
paths:
- "Plugin/**"
workflow_dispatch:

jobs:
run-build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Dependencies
run: |
git submodule update --init --recursive;
vcpkg integrate install
- name: Build
run: |
Remove-Item build -Recurse -Force -ErrorAction:SilentlyContinue -Confirm:$False | Out-Null;
cmake -B build -S Plugin --preset=build-release-msvc-msvc -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake;
cmake --build build
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Release
path: build/Release
retention-days: 30
21 changes: 21 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: DoozyX/[email protected]
with:
source: '.'
exclude: './docs'
extensions: 'c,cc,cpp,cxx,h,hpp,hxx,inl,inc,ixx'
clangFormatVersion: 16
inplace: True
- uses: EndBug/add-and-commit@v9
with:
author_name: clang-format
message: 'chore: style formatting'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37 changes: 14 additions & 23 deletions .github/workflows/maintenance.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,24 @@
name: Scripted maintenance
name: Maintenance

on: [ push, pull_request_target ]
on: [push]

jobs:
maintenance:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: DoozyX/[email protected]
with:
ref: ${{ github.head_ref }}
source: '.'
exclude: './docs'
extensions: 'c,cc,cpp,cppm,cxx,h,hpp,hxx,inl,inc,ixx,mxx'
clangFormatVersion: 16
inplace: True

- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v2
- uses: EndBug/add-and-commit@v9
with:
path: ${{ runner.temp }}/llvm
key: llvm-14

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: "14"
directory: ${{ runner.temp }}/llvm
cached: ${{ steps.cache-llvm.outputs.cache-hit }}

- name: Run clang-format
run: find -type f \( -name *.h -o -name *.cpp \) | xargs clang-format -style=file -i

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: maintenance
committer_name: clang-format
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
message: 'chore: style formatting'
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
build/
[Bb]uild/
.vs/
.vscode/
*.zip
*.timestamp
deploy-*.ps1
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[submodule "extern/CommonLibF4"]
path = extern/CommonLibF4
url = https://github.com/shad0wshayd3/CommonLibF4.git
[submodule "extern/BethesdaCMakeModules"]
path = extern/BethesdaCMakeModules
url = https://github.com/shad0wshayd3/BethesdaCMakeModules.git
[submodule "extern/DKUtil"]
path = extern/DKUtil
url = https://github.com/gottyduke/DKUtil.git
74 changes: 0 additions & 74 deletions CMakeLists.txt

This file was deleted.

65 changes: 0 additions & 65 deletions CMakePresets.json

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 shad0wshayd3
Copyright (c) 2023

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 17682c6

Please sign in to comment.