Skip to content

Commit

Permalink
Move to Github Actions for test run (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
baconpaul authored Jul 27, 2024
1 parent b784235 commit 3936ff0
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/build-pr.yml
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
18 changes: 18 additions & 0 deletions .github/workflows/code-checks.yml
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 }}

0 comments on commit 3936ff0

Please sign in to comment.