@@ -2,18 +2,29 @@ name: C/C++ CI
22
33on : [push, pull_request]
44
5+ env :
6+ # Only used for the cache key. Increment version to force clean build.
7+ GODOT_BASE_BRANCH : master
8+ SCONS_CACHE : ${{ github.workspace }}/.scons-cache/
9+
510jobs :
611 linux-x64 :
712 runs-on : ubuntu-20.04
813 steps :
9- - uses : actions/checkout@v2
14+ - uses : actions/checkout@v3
15+ with :
16+ submodules : recursive
17+ - name : Setup Godot build cache
18+ uses : ./godot-cpp/.github/actions/godot-cache
19+ with :
20+ cache-name : linux-x86_64
21+ continue-on-error : true
1022 - name : build-linux-editor-x64
1123 run : |
12- git submodule update --init --recursive
1324 pip3 install --user scons
1425 scons platform=linux target=editor generate_bindings=yes -j $(nproc)
1526 ldd demo/addons/godot-git-plugin/linux/*.so
16- - uses : actions/upload-artifact@v2
27+ - uses : actions/upload-artifact@v3
1728 with :
1829 name : libgit_plugin.linux.x86_64.editor.so-${{ github.sha }}
1930 if-no-files-found : error
@@ -23,19 +34,24 @@ jobs:
2334 windows-x64 :
2435 runs-on : windows-2019
2536 steps :
26- - uses : actions/checkout@v2
37+ - uses : actions/checkout@v3
38+ with :
39+ submodules : recursive
40+ - name : Setup Godot build cache
41+ uses : ./godot-cpp/.github/actions/godot-cache
42+ with :
43+ cache-name : windows-x86_64
2744 - uses : actions/setup-python@v2
2845 with :
2946 python-version : " 3.x"
3047 architecture : " x64"
3148 - uses : ilammy/msvc-dev-cmd@v1
3249 - name : build-windows-editor-x64
3350 run : |
34- git submodule update --init --recursive
3551 pip3 install --user scons
3652 scons platform=windows target=editor generate_bindings=yes -j $env:NUMBER_OF_PROCESSORS
3753 dumpbin /dependents .\demo\addons\godot-git-plugin\win64\*.dll
38- - uses : actions/upload-artifact@v2
54+ - uses : actions/upload-artifact@v3
3955 with :
4056 name : libgit_plugin.windows.x86_64.editor.dll-${{ github.sha }}
4157 if-no-files-found : error
@@ -45,14 +61,19 @@ jobs:
4561 macos-universal :
4662 runs-on : macos-11
4763 steps :
48- - uses : actions/checkout@v2
64+ - uses : actions/checkout@v3
65+ with :
66+ submodules : recursive
67+ - name : Setup Godot build cache
68+ uses : ./godot-cpp/.github/actions/godot-cache
69+ with :
70+ cache-name : macos-universal
4971 - name : build-macos-editor-universal
5072 run : |
51- git submodule update --init --recursive
5273 brew install scons
5374 scons platform=macos target=editor generate_bindings=yes macos_arch=universal use_llvm=yes macos_deployment_target=10.13 -j $(sysctl -n hw.logicalcpu)
5475 otool -L demo/addons/godot-git-plugin/macos/*.dylib
55- - uses : actions/upload-artifact@v2
76+ - uses : actions/upload-artifact@v3
5677 with :
5778 name : libgit_plugin.macos.universal.editor.dylib-${{ github.sha }}
5879 if-no-files-found : error
0 commit comments