update action and add pyglet as submodule

This commit is contained in:
shenjack 2023-11-20 20:11:30 +08:00
parent 0d0443c012
commit 8877220b0a
Signed by: shenjack
GPG Key ID: 7B1134A979775551
4 changed files with 19 additions and 3 deletions

View File

@ -32,13 +32,19 @@ jobs:
steps:
# Check-out repository
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
# check out submodule
- name: init submodule
run: |
git submodule init
git submodule update
# 缓存 Rust 构建
- name: Cache rust
uses: Swatinem/rust-cache@v2
with:
workspace: mods/dr_game/Difficult_Rocket_rs
workspaces: mods/dr_game/Difficult_Rocket_rs
key: dr_rs-v1
# 获取短 sha

View File

@ -36,7 +36,13 @@ jobs:
steps:
# Check-out repository
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
# 初始化子模块
- name: Init submodules
run: |
git submodule init
git submodule update
# 安装 Python
- name: Setup Python ${{ matrix.python-version }}

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "libs/lib_not_dr"]
path = libs/lib_not_dr
url = git@github.com:shenjackyuanjie/lib-not-dr.git
[submodule "libs/pyglet"]
path = libs/pyglet
url = git@github.com:shenjackyuanjie/pyglet.git

1
libs/pyglet Submodule

@ -0,0 +1 @@
Subproject commit 2782612aa98fa435958406bcf22f6bb385bf065c