diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-10-16 15:36:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-16 15:36:24 +0200 |
commit | 94e5f66cbb399ffd3e501a237d7eb3de79ce1607 (patch) | |
tree | 12d6a60ca4fc128ff1c30776bd930cf8cad86067 | |
parent | eb3d7f29befd11c89b7a14407f3a9c9914997f32 (diff) | |
parent | 2946535a6f4da7720c64ef1c2698bda102c22a7b (diff) |
Merge pull request #42679 from Xrayez/ci-sconsflags
CI: Refactor build workflows to use `SCONSFLAGS`
-rw-r--r-- | .github/workflows/android_builds.yml | 5 | ||||
-rw-r--r-- | .github/workflows/ios_builds.yml | 5 | ||||
-rw-r--r-- | .github/workflows/javascript_builds.disabled | 5 | ||||
-rw-r--r-- | .github/workflows/linux_builds.yml | 9 | ||||
-rw-r--r-- | .github/workflows/macos_builds.yml | 7 | ||||
-rw-r--r-- | .github/workflows/windows_builds.yml | 7 |
6 files changed, 22 insertions, 16 deletions
diff --git a/.github/workflows/android_builds.yml b/.github/workflows/android_builds.yml index 4b79b459f9..3c1e6a6b72 100644 --- a/.github/workflows/android_builds.yml +++ b/.github/workflows/android_builds.yml @@ -1,9 +1,10 @@ name: 🤖 Android Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=android verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_LIMIT: 4096 jobs: @@ -70,7 +71,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=android target=release tools=no + scons target=release tools=no ls -l bin/ - uses: actions/upload-artifact@v2 diff --git a/.github/workflows/ios_builds.yml b/.github/workflows/ios_builds.yml index 7890922fab..80db5d68ce 100644 --- a/.github/workflows/ios_builds.yml +++ b/.github/workflows/ios_builds.yml @@ -1,9 +1,10 @@ name: 🍏 iOS Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=iphone verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_LIMIT: 4096 jobs: @@ -47,7 +48,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=iphone target=release tools=no + scons target=release tools=no ls -l bin/ - uses: actions/upload-artifact@v2 diff --git a/.github/workflows/javascript_builds.disabled b/.github/workflows/javascript_builds.disabled index 9ad9ceddcc..8ed77726cc 100644 --- a/.github/workflows/javascript_builds.disabled +++ b/.github/workflows/javascript_builds.disabled @@ -1,9 +1,10 @@ name: 🌐 JavaScript Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=javascript verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_LIMIT: 4096 EM_VERSION: 1.39.20 EM_CACHE_FOLDER: 'emsdk-cache' @@ -74,7 +75,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=javascript target=release tools=no use_closure_compiler=yes + scons target=release tools=no use_closure_compiler=yes ls -l bin/ - uses: actions/upload-artifact@v2 diff --git a/.github/workflows/linux_builds.yml b/.github/workflows/linux_builds.yml index 5a62fad572..b170889cb3 100644 --- a/.github/workflows/linux_builds.yml +++ b/.github/workflows/linux_builds.yml @@ -1,9 +1,10 @@ name: 🐧 Linux Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=linuxbsd verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_LIMIT: 4096 jobs: @@ -61,7 +62,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=linuxbsd tools=yes tests=yes target=release_debug module_mono_enabled=yes mono_glue=no + scons tools=yes tests=yes target=release_debug module_mono_enabled=yes mono_glue=no ls -l bin/ # Execute unit tests for the editor @@ -129,7 +130,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=linuxbsd tools=yes tests=yes target=debug use_asan=yes use_ubsan=yes + scons tools=yes tests=yes target=debug use_asan=yes use_ubsan=yes ls -l bin/ # Execute unit tests for the editor @@ -196,7 +197,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=linuxbsd target=release tools=no module_mono_enabled=yes mono_glue=no + scons target=release tools=no module_mono_enabled=yes mono_glue=no ls -l bin/ - uses: actions/upload-artifact@v2 diff --git a/.github/workflows/macos_builds.yml b/.github/workflows/macos_builds.yml index c053f224cb..6a684872f2 100644 --- a/.github/workflows/macos_builds.yml +++ b/.github/workflows/macos_builds.yml @@ -1,9 +1,10 @@ name: 🍎 macOS Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=osx verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_LIMIT: 4096 jobs: @@ -49,7 +50,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=osx tools=yes tests=yes target=release_debug + scons tools=yes tests=yes target=release_debug ls -l bin/ # Execute unit tests for the editor @@ -103,7 +104,7 @@ jobs: env: SCONS_CACHE: ${{github.workspace}}/.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=osx target=release tools=no + scons target=release tools=no ls -l bin/ - uses: actions/upload-artifact@v2 diff --git a/.github/workflows/windows_builds.yml b/.github/workflows/windows_builds.yml index 8c44e82d62..0af4d22b72 100644 --- a/.github/workflows/windows_builds.yml +++ b/.github/workflows/windows_builds.yml @@ -1,10 +1,11 @@ name: 🏁 Windows Builds on: [push, pull_request] -# Global Cache Settings +# Global Settings # SCONS_CACHE for windows must be set in the build environment env: GODOT_BASE_BRANCH: master + SCONSFLAGS: platform=windows verbose=yes warnings=all werror=yes --jobs=2 SCONS_CACHE_MSVC_CONFIG: true SCONS_CACHE_LIMIT: 4096 @@ -54,7 +55,7 @@ jobs: env: SCONS_CACHE: /.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=windows tools=yes tests=yes target=release_debug + scons tools=yes tests=yes target=release_debug ls -l bin/ # Execute unit tests for the editor @@ -109,7 +110,7 @@ jobs: env: SCONS_CACHE: /.scons_cache/ run: | - scons -j2 verbose=yes warnings=all werror=yes platform=windows target=release tools=no + scons target=release tools=no ls -l bin/ - uses: actions/upload-artifact@v2 |