-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 923 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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