Skip to content

Commit

Permalink
check if amalgamate file is sync with codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
qgymib committed Aug 2, 2024
1 parent 313913d commit dcc1d61
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/amalgamate_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: amalgamate-check

on: [push]

env:
BUILD_TYPE: Debug

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DEV_DEV=ON

- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Amalgamate Check
run: |
if git diff --exit-code ev.h; then
else
echo "ev.h is not sync with source code."
exit 1
fi
if git diff --exit-code ev.c; then
else
echo "ev.c is not sync with source code."
exit 1
fi

0 comments on commit dcc1d61

Please sign in to comment.