Update Lua Submodule and Build #23
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 | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Run every day at midnight UTC | |
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 Lua submodule | |
run: | | |
git submodule update --remote --merge | |
- name: Install Clang | |
uses: egor-tensin/setup-clang@v1 | |
- name: Configure and build with CMake | |
run: | | |
git submodule update --init --recursive --progress | |
ls | |
mkdir build && cd build | |
cmake .. | |
cmake --build . | |
- name: Commit and push changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "Update Lua submodule" | |
git push |