mirror of
https://github.com/godotengine/godot-git-plugin.git
synced 2026-01-06 02:09:44 +03:00
[CI] Add scons cache.
This commit is contained in:
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@@ -2,18 +2,29 @@ name: C/C++ CI
|
|||||||
|
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Only used for the cache key. Increment version to force clean build.
|
||||||
|
GODOT_BASE_BRANCH: master
|
||||||
|
SCONS_CACHE: ${{ github.workspace }}/.scons-cache/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux-x64:
|
linux-x64:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Godot build cache
|
||||||
|
uses: ./godot-cpp/.github/actions/godot-cache
|
||||||
|
with:
|
||||||
|
cache-name: linux-x86_64
|
||||||
|
continue-on-error: true
|
||||||
- name: build-linux-editor-x64
|
- name: build-linux-editor-x64
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
|
||||||
pip3 install --user scons
|
pip3 install --user scons
|
||||||
scons platform=linux target=editor generate_bindings=yes -j $(nproc)
|
scons platform=linux target=editor generate_bindings=yes -j $(nproc)
|
||||||
ldd demo/addons/godot-git-plugin/linux/*.so
|
ldd demo/addons/godot-git-plugin/linux/*.so
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: libgit_plugin.linux.x86_64.editor.so-${{ github.sha }}
|
name: libgit_plugin.linux.x86_64.editor.so-${{ github.sha }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
@@ -23,7 +34,13 @@ jobs:
|
|||||||
windows-x64:
|
windows-x64:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Godot build cache
|
||||||
|
uses: ./godot-cpp/.github/actions/godot-cache
|
||||||
|
with:
|
||||||
|
cache-name: windows-x86_64
|
||||||
- uses: actions/setup-python@v2
|
- uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: "3.x"
|
python-version: "3.x"
|
||||||
@@ -31,11 +48,10 @@ jobs:
|
|||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
- name: build-windows-editor-x64
|
- name: build-windows-editor-x64
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
|
||||||
pip3 install --user scons
|
pip3 install --user scons
|
||||||
scons platform=windows target=editor generate_bindings=yes -j $env:NUMBER_OF_PROCESSORS
|
scons platform=windows target=editor generate_bindings=yes -j $env:NUMBER_OF_PROCESSORS
|
||||||
dumpbin /dependents .\demo\addons\godot-git-plugin\win64\*.dll
|
dumpbin /dependents .\demo\addons\godot-git-plugin\win64\*.dll
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: libgit_plugin.windows.x86_64.editor.dll-${{ github.sha }}
|
name: libgit_plugin.windows.x86_64.editor.dll-${{ github.sha }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
@@ -45,14 +61,19 @@ jobs:
|
|||||||
macos-universal:
|
macos-universal:
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Setup Godot build cache
|
||||||
|
uses: ./godot-cpp/.github/actions/godot-cache
|
||||||
|
with:
|
||||||
|
cache-name: macos-universal
|
||||||
- name: build-macos-editor-universal
|
- name: build-macos-editor-universal
|
||||||
run: |
|
run: |
|
||||||
git submodule update --init --recursive
|
|
||||||
brew install scons
|
brew install scons
|
||||||
scons platform=macos target=editor generate_bindings=yes macos_arch=universal use_llvm=yes macos_deployment_target=10.13 -j $(sysctl -n hw.logicalcpu)
|
scons platform=macos target=editor generate_bindings=yes macos_arch=universal use_llvm=yes macos_deployment_target=10.13 -j $(sysctl -n hw.logicalcpu)
|
||||||
otool -L demo/addons/godot-git-plugin/macos/*.dylib
|
otool -L demo/addons/godot-git-plugin/macos/*.dylib
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: libgit_plugin.macos.universal.editor.dylib-${{ github.sha }}
|
name: libgit_plugin.macos.universal.editor.dylib-${{ github.sha }}
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|||||||
Reference in New Issue
Block a user