-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3e701a9
commit 955cd9c
Showing
24 changed files
with
17,108 additions
and
18,924 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
name: Format | ||
name: clang-format | ||
|
||
on: | ||
push: | ||
branches: main | ||
|
||
permissions: | ||
contents: write | ||
paths: | ||
- "include/**" | ||
- "src/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
maintenance: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
|
@@ -18,18 +19,14 @@ jobs: | |
uses: DoozyX/[email protected] | ||
with: | ||
source: "." | ||
extensions: "h, cpp" | ||
extensions: "h,cpp" | ||
clangFormatVersion: 16 | ||
inplace: true | ||
|
||
- name: Run Prettier | ||
uses: actionsx/prettier@v3 | ||
with: | ||
args: --write "${{ github.workspace }}/*.json" | ||
|
||
- name: Add & Commit | ||
uses: EndBug/[email protected] | ||
with: | ||
message: "ci: formatting" | ||
default_author: github_actions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Prettier | ||
|
||
on: | ||
push: | ||
branches: main | ||
paths: | ||
- "**.json" | ||
- "**.yml" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run Prettier | ||
uses: actionsx/prettier@v3 | ||
with: | ||
args: --write "${{ github.workspace }}/*.json" | ||
|
||
- name: Add & Commit | ||
uses: EndBug/[email protected] | ||
with: | ||
message: "ci: formatting" | ||
default_author: github_actions | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Test Build | ||
|
||
on: | ||
workflow_run: | ||
workflows: clang-format | ||
types: completed | ||
workflow_dispatch: | ||
|
||
env: | ||
VCPKG_COMMIT_ID: e44d60e6bf0964064bf69667cd9f3e91dc383c7c | ||
|
||
jobs: | ||
test-build: | ||
runs-on: windows-latest | ||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
matrix: | ||
preset: | ||
- debug | ||
- release | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get CMake | ||
uses: lukka/get-cmake@latest | ||
|
||
- name: Setup vcpkg | ||
uses: lukka/[email protected] | ||
with: | ||
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }} | ||
|
||
- name: Run CMake | ||
uses: lukka/[email protected] | ||
with: | ||
configurePreset: build-${{ matrix.preset }}-msvc | ||
buildPreset: ${{ matrix.preset }}-msvc |
Oops, something went wrong.