Update Lua Submodule and Build #40
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
name: Update Lua Submodule and Build | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Run every week | |
workflow_dispatch: # Allow manual triggering of the workflow | |
jobs: | |
update_lua_submodule: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v2 | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: Install Clang | |
uses: egor-tensin/setup-clang@v1 | |
- name: Configure and build with CMake | |
run: | | |
ls | |
mkdir build && cd build | |
cmake .. | |
cmake --build . | |
- name: Commit and push changes | |
run: | | |
# Check for changes in the repository | |
if git diff-index --quiet HEAD --; then | |
echo "No changes in the repository." | |
else | |
# Commit the changes, including submodule updates | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "Update Lua submodule and other changes" | |
git push | |
fi |