diff --git a/.github/workflows/amalgamate_check.yml b/.github/workflows/amalgamate_check.yml new file mode 100644 index 000000000..6e463a076 --- /dev/null +++ b/.github/workflows/amalgamate_check.yml @@ -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