-
Notifications
You must be signed in to change notification settings - Fork 3
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
106a475
commit e5894ff
Showing
22 changed files
with
478 additions
and
957 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: clang-format | ||
|
||
on: | ||
push: | ||
branches: main | ||
paths: | ||
- "include/**" | ||
- "src/**" | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
clang-format: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run clang-format | ||
uses: DoozyX/clang-format-lint-action@v0.17 | ||
with: | ||
source: "." | ||
extensions: "h,cpp" | ||
clangFormatVersion: 17 | ||
inplace: true | ||
|
||
- name: Add & Commit | ||
uses: EndBug/add-and-commit@v9 | ||
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/add-and-commit@v9 | ||
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: 5786fcb0cb5eb08d1931a230dad9701e7a6c37f0 | ||
|
||
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/run-vcpkg@v11 | ||
with: | ||
vcpkgGitCommitId: ${{ env.VCPKG_COMMIT_ID }} | ||
|
||
- name: Run CMake | ||
uses: lukka/run-cmake@v10 | ||
with: | ||
configurePreset: build-${{ matrix.preset }}-msvc | ||
buildPreset: ${{ matrix.preset }}-msvc |
Oops, something went wrong.