-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to Github Actions for test run (#69)
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_plugin: | ||
name: Test - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: windows-latest | ||
- os: macos-latest | ||
- os: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Locales on Linux | ||
if: runner.os == 'macOS' | ||
run: | | ||
sudo locale-gen es_ES | ||
sudo locale-gen fr_FR | ||
sudo locale-gen ja_JP | ||
sudo locale-gen zh_CN | ||
sudo update-locale | ||
- name: Build pull request version | ||
run: | | ||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build ./build --config Debug --target run-all-tests | ||
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,18 @@ | ||
name: Format Check | ||
on: [pull_request] | ||
jobs: | ||
formatting-check: | ||
name: Clang Format Check | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
path: | ||
- 'src' | ||
# - 'include' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run clang-format style check | ||
uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '17' | ||
check-path: ${{ matrix.path }} |